Can you explain clearly what is the different between postfix and prefix in C++? | Sololearn: Learn to code for FREE!
+ 1

Can you explain clearly what is the different between postfix and prefix in C++?

Especially for the result between that two things.

9th Apr 2017, 10:51 PM
pratama
pratama - avatar
3 Answers
+ 1
prefix: increments the value and then proceeds with the expressions,,,,,,where as in postfix: it evaluates the expression and then preforms in incrementing.
11th Apr 2017, 3:05 PM
Hemanth Karthik
Hemanth Karthik - avatar