Multiple choice technology programming languages

The statement i++; is equivalent to

  1. i = i + i;

  2. i = i - 1;

  3. i = i + 1;

  4. i --;

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The statement i++ is the postfix increment operator, which increments i by 1. It is equivalent to i = i + 1. Option A doubles the value, option B decrements, and option D is the decrement operator.