Question 6
Back to Exercise
Which declaration overloads the postfix increment x++?
- A T& operator++();
- B T operator++(int); Correct
- C T operator++(T);
- D T& operator++(++);
Correct Answer: Option B
The unused int parameter distinguishes postfix from prefix.
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!