Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren+ 2
What is the output?how?
int a=5,b=3,x; x=a-b++*--b; cout<<x;
5 Antworten
+ 2
OUTPUT = -4
5-3*3
+ 2
tq yad
+ 1
NP
0
Output = -7
5-3*4
but b is set back to 3
0
oops thought it was a post decrement
output = -4