+ 1

Why are we use postfix and prefix

14th Jun 2018, 9:27 AM
Archana Berad
2 Answers
+ 5
Archana Berad The prefix increment operator adds one to its operand. This incremented value is used in the expression to get the result of the expression. The postfix operator decrement by one and the decremented result is used in the expression to get the value of the expression. So you can see there's big difference between both still most of beginners get confuse between
14th Jun 2018, 9:34 AM
kev_coding
kev_coding - avatar
+ 1
ty
14th Jun 2018, 9:47 AM
Archana Berad