Multiple choice

Which of the following statements is correct about postfix?

  1. Postfix operators can appear only on the right side of the operand.

  2. A postfix operator first changes the value of its operand before taking its value.

  3. A postfix operator first fetches the value and then increments it.

  4. Postfix operators cannot be overloaded.

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

Postfix operators return the original value before applying the operation. For example, i++ in an expression returns the current value of i, then increments i afterward, unlike prefix operators that modify first.