Which of these C++ operators can NOT be overloaded?
Correct answer A. ?: (conditional operator)
Explanation
Most operators can be overloaded, including [], (), and compound assignments such as +=. A few cannot: the conditional ?:, member access ., pointer-to-member .*, scope resolution ::, and sizeof, alignof and typeid. These are excluded because they operate on names or types rather than values, or because overloading them would break fundamental language rules.
Answer checked How we write and check questions
Discussion