0

what is the difference between "++num1" and "num1++"

19th Feb 2017, 4:30 AM
Josue Andres Tamayo
Josue Andres Tamayo - avatar
3 Answers
19th Feb 2017, 4:40 AM
Kommoju Sunil Kumar
Kommoju Sunil Kumar - avatar
0
++num1 increments num1 by one then assigns it, num1++ assings the current value then only increments it.
19th Feb 2017, 5:28 AM
Andre van Rensburg
Andre van Rensburg - avatar
0
++num1 increment the num value then assigns while num++ it only gives a current value of number.
21st Feb 2017, 12:09 AM
Mark David Caesar Z. Sabia
Mark David Caesar Z. Sabia - avatar