Multiple choice

Which of the following operators in C++ cannot be overloaded?

  1. +

  2. -

  3. ==

  4. ?:

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

The conditional operator(?:) in C++ cannot be overloaded as it is a ternary operator and requires three arguments to operate.