I have a problem geeks!!! In following program.....
#include<stdio.h>
#include<conio.h>
void main()
{
float f=0.7;
clrscr();
if(f<0.7)
printf("C+");
else
printf("C++");
getch();
}
in the above program when I give the value of f=0.7 and in if statement also I put the same value 0.7 then the output of these codes come to be "C+" whether I was expecting "C++" for this...........on the other hand if I make f=(something other than 0.7) like 0.5 or 0.8 and also put the same value in if statement then it is working as per my expectations and giving the output as "C++"