Manish is right.
I'm so sorry, the evil code what I said before is uglier as follows
int x=1;
int y=x++ + ++x + ++x - x++;
cout<<y;
Forgive my careless please... :(
On Fri, Apr 29, 2011 at 4:31 PM, MANNU <[email protected]> wrote:
> *Can anyone please explain me the output of this program:*
>
> int x=1;
> int y=x++ + ++x + ++x + x++;
> cout<<y;
> cout<<x;
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.