C++ | Operator Overloading | Question 2

Which of the following operators cannot be overloaded
(A) . (Member Access or Dot operator)
(B) ?: (Ternary or Conditional Operator )
(C) :: (Scope Resolution Operator)
(D) .* (Pointer-to-member Operator )
(E) All of the above


Answer: (E)

Explanation: See What are the operators that cannot be overloaded in C++?

Quiz of this Question

GATE CS Corner    Company Wise Coding Practice

Recommended Posts:



0 Average Difficulty : 0/5.0
No votes yet.