Multiple choice

Which one of the following is not a de-referencing operator?

  1. .*

  2. *

  3. ::*

  4. ::

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The scope resolution operator (::) is used to access static members and namespace members, not for dereferencing. The other operators (* dereferences pointers, .* dereferences through objects, and ::* dereferences pointers to members) all perform dereferencing operations.