+ 1

What’s the “/*”?

int x = 3;/* x = 4; */++x; cout << x; Why does it also skip the “++x”?

28th Sep 2023, 12:07 PM
Caleb Benitez
Caleb Benitez - avatar
2 Answers
+ 8
Not /* It is /* */ which is use for multiple line comments It will not skip ++x it will skip only x = 4 x will be 4
28th Sep 2023, 12:31 PM
AÍąJ
AÍąJ - avatar
+ 1
Ooooh, ok so it’s “++x” gets 4 because x is still 3(unfortunately this app doesnt have replies)
28th Sep 2023, 6:20 PM
Caleb Benitez
Caleb Benitez - avatar