> From: rajanchatter...@...
> > 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