Which of the following C++ operators CANNOT be overloaded?

2019

Which of the following C++ operators CANNOT be overloaded?

  1. A.

    Equal (==)

  2. B.

    Multiplication (*)

  3. C.

    Scope resolution (::)

  4. D.

    Logical AND (&&)

Attempted by 173 students.

Show answer & explanation

Correct answer: C

Answer: Scope resolution (::) cannot be overloaded. Reason: The scope resolution operator (::) is used by the compiler for compile-time name lookup and binding. Because its behavior is part of the language's name resolution mechanism, it cannot be redefined or overloaded by user code. Other operators that the language does not allow you to overload include: Member access operator (.) — cannot be overloaded.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Uppsc Polytechnic Lecturer 2025 Cs