- 1
For (int x=1;x<5, x++){cout<<x;}
Whats is the output? And if the increment bcome ++x what is the new output? Help please for a better understanding
3 Respostas
+ 2
Here you find some examples:
https://www.sololearn.com/learn/CPlusPlus/1610/?ref=app
+ 6
Once again, Code Playground has the answer.
+ 1
Prefix: increments the value, and then proceeds with the expression.
Postfix: evaluates the expression and then performs the incrementing.