cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
gcc/g++ is not type casting in if()- Pro
gcc/g++ is not type casting in if()- Problem
Jun 23, 2010 at 12:18pm UTC
jbourne
(6)
#include<stdio.h>
int main()
{
double a=2.1;
float b=2.1;
if(a==b)
printf("hh");
return 0;
}
Why is program not going in the if condition?
I tried this with gcc and g++ compiler of CYGWIN. Both show the same result.
Jun 23, 2010 at 12:32pm UTC
R0mai
(730)
http://www.parashift.com/c++-faq-lite/newbie.html#faq-29.17
Topic archived. No new replies allowed.