suresh kanna <[EMAIL PROTECTED]> wrote:

hai,

Can anyone help me(explain) in this program!

main()

{

float f= 0.7;

if(f<0.7)

{printf("The value less than 0.7");}

else

printf("The value greater ");

}

 

But the output appears as(the value less than 0.7)

why soo?The system reconizess the value as 0.69999..i think so(not sure)

Can anyone help me in this one...and explain y so!

thank u,

suresh kanna

*****************************************************************************************************

Hi

Ur knowledge that system recognizes the value as 0.69999 is right. the difference in result is compiler dependant. If im not wrong this the result which u got in Turbo C++|..

Try a more reliable and and new compiler. Result would have no issues....

 



Regards
Deepankar


Do you Yahoo!?
Send holiday email and support a worthy cause. Do good.

To unsubscribe : [EMAIL PROTECTED]




Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to