Re: Initialization and Floating Problem.

Marcel <[email protected]>
Newsgroups gmane.comp.programming.cppug
Message-ID <[email protected]>
if you have orkut take a look at
http://www.orkut.com/CommMsgs.aspx?cmm=591&tid=1565959
or
http://en.wikipedia.org/wiki/Sequence_points

marcel

--- barjeshforyou <[email protected]> wrote:

> hi friends.this is my first mail to this group.i
> would             
> like to why the following two statements are giving
> differet        
> values to variables.
>                      p and s.
>                      int p,i=10;
>                      p=i++ + i++;//p=20
> 
>                      i=10;
>                      int s=i++ + i++;//s=21
> 
>                      2.
>                      float c=0.7;
>                      if(c<0.7)
>                      printf("yes");
>                      else
>                      printf("no");
> 
>                      output:-yes
>                      if i write c<0.7f then it
> prints no.
>                      i would like to know the reason
> behind this i.e
> what's happening internally.
> 
> 
> 
> ------------------------ Yahoo! Groups Sponsor
> --------------------~--> 
> $9.95 domain names from Yahoo!. Register anything.
>
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/EbFolB/TM
>
--------------------------------------------------------------------~->
> 
> 
>  
> Yahoo! Groups Links
> 
> 
>     [email protected]
> 
>  
> 
> 



		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/EbFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/cppug/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.