+ 2

What is the difference

What is the difference between ++x and x++ i am having a hard time.

30th Dec 2016, 9:49 AM
JOHN MBONE KIRANGA
JOHN MBONE KIRANGA - avatar
2 Respostas
25th Jun 2017, 10:06 AM
Siddharth Saraf
+ 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
30th Dec 2016, 9:53 AM
Florian Castelain
Florian Castelain - avatar