0
why this code gives out 7 not 8?
3 Answers
+ 9
'cause when the operator is placed after the operand, it first returns the value of the operand and then increases the value of operand by 1.
If you want 8, put increment operator before the operand.
(++a)
+ 3
Because of the post increment. It returns the argument given and then adds 1 to it after
+ 2
â~Monu~â thank you!