K
Ketan Parikh
Hey everybody,
How are u?
I am new this group.
I have question regarding following C program.
main()
{
float k=0.7;
if (k < 0.7)
printf("Hey");
else
printf("Hello");
}
the o/p : "Hey" (surprise me!!)
I also work with other number like 0.1,0.2 ....0.9
But only 0.7 and 0.9 gives o/p as "Hey"
and all others gives o/p as "Hello"
So what would be reason for this?
You can mail me at : (e-mail address removed)
Have a nice time
Jay Hind.
How are u?
I am new this group.
I have question regarding following C program.
main()
{
float k=0.7;
if (k < 0.7)
printf("Hey");
else
printf("Hello");
}
the o/p : "Hey" (surprise me!!)
I also work with other number like 0.1,0.2 ....0.9
But only 0.7 and 0.9 gives o/p as "Hey"
and all others gives o/p as "Hello"
So what would be reason for this?
You can mail me at : (e-mail address removed)
Have a nice time
Jay Hind.