This is an un-defined behavior. The output depends on the compiler used. Correct me if i am wrong...
On Wed, Nov 18, 2009 at 12:09 PM, manishpchawda <[email protected]>wrote: > > > [mod-- This gets discussed ad-nauseum. The behaviour is undefined > since the code modifies x (and y) twice between sequence points. > <http://c-faq.com/expr/seqpoints.html> --mod PN] > > Hi, > > I am not able to understand the output of: > > unsigned char x; > x = 300; > printf("%d",x); > > int x,y; > x = 5; > y = 10; > printf("%d\t%d\t%d\t%d\t",x++,y++,++x,++y); > > Regards, > > Manish > > > -- Abhijeet Rastogi http://www.google.com/profiles/abhijeet.1989 [Non-text portions of this message have been removed]
