xor c++ code example
Example 1: ++x vs x++
x++ //after assignment
++x //before assignment
Example 2: x += c++
int main ()
{
int a, b=3;
a = b;
a+=2; // equivalent to a=a+2
cout << a;
}
x++ //after assignment
++x //before assignment
int main ()
{
int a, b=3;
a = b;
a+=2; // equivalent to a=a+2
cout << a;
}