K
Ketan Parikh
Hey everybody,
I am new to this group. I am from India.
Consider the following code.
main()
{
float k=0.7;
if (k < 0.7)
printf("Hey");
else
printf("Hello");
}
the o/p of the program is: "Hello" why?
I have tried also with 0.1,0.2 ...0.9
but only in 0.7 and 0.9 case i have got o/p as "Hello"
and in all other cases i have got o/p as "Hey".
so please give me reason about this answer?
I would be very thankfull to u.
Have a nice time
Jay Hind.
I am new to this group. I am from India.
Consider the following code.
main()
{
float k=0.7;
if (k < 0.7)
printf("Hey");
else
printf("Hello");
}
the o/p of the program is: "Hello" why?
I have tried also with 0.1,0.2 ...0.9
but only in 0.7 and 0.9 case i have got o/p as "Hello"
and in all other cases i have got o/p as "Hey".
so please give me reason about this answer?
I would be very thankfull to u.
Have a nice time
Jay Hind.