0
what is the difference between "++num1" and "num1++"
3 Answers
+ 2
https://code.sololearn.com/c68JVx3xS9B0/?ref=app
check it out
0
++num1 increments num1 by one then assigns it, num1++ assings the current value then only increments it.
0
++num1 increment the num value then assigns while num++ it only gives a current value of number.