Possible Duplicate:
Floating point comparison
#include<stdio.h>
#include<conio.h>
int main()
{
float i=0.7;
clrscr();
if(i < 0.7)
printf("If Block");
else
printf("Else Block");
getch();
return 0;
}
I dont understand whay the output will be "If block".....please help why the if part is executed?