Open In App

Algorithms Quiz | SP Contest 1 | Question 5

Below are some operators separated by comma in C++. Which of these operators cannot be overloaded?

!, ::, ->*, ~, .*, sizeof, new

(A) ->*, .*, sizeof
(B) .*, ~, new
(C) ::, sizeof, !
(D) sizeof, .*, ::

Answer: (D)
Explanation: https://www.geeksforgeeks.org/g-fact-14/
Quiz of this Question

Article Tags :