your prog output is "how r u"
bcoz float 1.1 return1.09999 
and double return 1.1




________________________________
From: peternilsson42 <[email protected]>
To: [email protected]
Sent: Sunday, August 9, 2009 3:57:01 PM
Subject: [c-prog] Re: plz solve

  
> From: rajanchatterjee@ ... 
> > Uday Oberio wrote:
> > > float a=1.1;
> > > double b=1.1;
> > > if(a==b)
> > > printf("hello" );
> > > else
> > > printf("how are u ");
> > 
> > I am new one in c++.

printf is rarely used in C++.

> > so please tell me it's answer.
> > I am eagerly waiting for your reply.

What do _you_ think, and why?

"Tyler Littlefield" <ty...@...> wrote:
> you could like... compile and run it.

What would that prove?

Either output is possible, e.g. double may have the same
representation as float, or (less likely) FLT_RADIX may
be 10.

But for further explanation, read the FAQ, specifically 14.5!

<http://c-faq. com/fp/index. html>

-- 
Peter





      

[Non-text portions of this message have been removed]

Reply via email to