Why doesn’t ++ increment integer value?

The ++ does increment the operand … but in its postfix form, it evaluates to the value before incrementing.

++num1 instead would evaluate to the value after incrementing.

Leave a Comment