0
why this output? int x=3; x=++x + ++x + ++x; cout<<x; //output==16 ?
6 Respostas
+ 3
there is a rule that expalin that a variable can not be upadated twice in an expression. if such things happen the result depends upon the implementation of that specific compiler .
+ 1
something wrong!
0
so we can't forecast result in the same examples?
0
OK this output depends on compiler
- 1
yeh something wrong its ouput should be 15
- 1
it should be 18