Question 39Asked in UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)

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

  1. ABitwise right shift assignment
  2. BAddress of
  3. CIndirection
  4. DStructure reference
Show answerHide answer

Correct answer: (D) Structure reference

Explanation

Structure reference refers to the dot operator (.), which is one of the operators that cannot be overloaded in C++. The other options (>>=, unary & and unary *) can be overloaded for custom types in C++.

From UGC NET Computer Science PYQ, June 2017 (Paper II & III, Selected Questions)

This is question 39 of UGC NET Computer Science PYQ, June 2017 (Paper II & III, Selected Questions). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.