0
what does this mean?
++i
2 Answers
+ 2
âĄ++i will increment the value of i, and then return the incremented value.
i = 1;
j = ++i;
(i is 2, j is 2)
âĄi++ will increment the value of i, but return the original value that i held before being incremented.
i = 1;
j = i++;
(i is 2, j is 1)
+ 1
Thank you so muchđđ»