+ 1
What is difference between postfix and prefix
3 Respostas
+ 11
Post increment basically increments after using the previous value of a variable
Preincrement increments before using the value of a variable
a = 0
a++// a = 0
a // a = 1
b = 0
++b // b = 1
b // b = 1
There have been posts like these before. search in the Q/A's and check the below links.
https://www.sololearn.com/discuss/489143/?ref=app
https://www.sololearn.com/discuss/452566/?ref=app
https://www.sololearn.com/discuss/484591/?ref=app
+ 3
post = after
pre = before
+ 3
can u explain it
please