+ 2

What is the output?how?

int a=5,b=3,x; x=a-b++*--b; cout<<x;

28th Mar 2018, 8:59 AM
sree vishal
sree vishal - avatar
5 Respuestas
+ 2
OUTPUT = -4 5-3*3
28th Mar 2018, 10:23 AM
yyy
+ 2
tq yad
28th Mar 2018, 10:35 AM
sree vishal
sree vishal - avatar
+ 1
NP
28th Mar 2018, 10:36 AM
yyy
0
Output = -7 5-3*4 but b is set back to 3
5th Apr 2018, 11:07 PM
Bate Martin
Bate Martin - avatar
0
oops thought it was a post decrement output = -4
5th Apr 2018, 11:09 PM
Bate Martin
Bate Martin - avatar