Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~346 People Reached
Favorite Forums
Favorite Tags
c++ x 5
Member Avatar for topsyturby

i found this problem in c/c++ when i wrote this code int a=5,b; b=++a +(+=a + a--); it gave the output of b as 21 and when i wrote int a; int b=++a + (++a + a--); it gave b as 18 why the answers are varying for the same …

Member Avatar for Tom Gunn
-1
346