+ 2
What is the difference
What is the difference between ++x and x++ i am having a hard time.
2 Respostas
+ 1
One will use the value and change the value of i and in the second case it's the oposite:
i = 3;
a = -- i;
=> a = 2 and i = 2
i = 3;
a = i --;
=> a = 3 and i = 2