+ 1

What is difference between postfix and prefix

12th Dec 2017, 1:48 PM
SHUVAM JASWAL
3 Réponses
+ 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
12th Dec 2017, 2:48 PM
Lord Krishna
Lord Krishna - avatar
+ 3
post = after pre = before
12th Dec 2017, 2:02 PM
AgentSmith
+ 3
can u explain it please
12th Dec 2017, 2:14 PM
SHUVAM JASWAL