0
What is the function of x++
i am confused
5 Answers
+ 1
If the operators are in front of the variable, it's called prefix while the operators behind it are called postfix. A prefix changes the variable before it is used in the expression, postfixes change the variable's value after it is used in the expression.
int x = 2;
cout >> x++
2
x = 2;
cout >> ++x
3
0
is this function important??
i am new here
0
It's short and often used, so it's important to know what it is doing.
0
alright, thanks for answering my question
0
đ



