What does scope resolution operator do?



What does scope resolution operator do?..

Answer / Bhagirathi Arya

The scope resolution operator (::) is used in C++ to access global variables and functions or members of a class from its namespace. It helps to differentiate between identifiers with the same name in different scopes.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What is c++ mutable?

1 Answers  


What is private public protected in c++?

1 Answers  


Explain deep copy and a shallow copy?

1 Answers  


Why do we use string in c++?

1 Answers  


When volatile can be used?

3 Answers   Symphony,


What is heap sort in c++?

1 Answers  


Why do we need function?

1 Answers  


What is a "RTTI"?

6 Answers   HCL,


Why c++ is not a pure oop language?

1 Answers  


Explain public, protected, private in c++?

1 Answers  


How does class accomplish data hiding in c++?

1 Answers  


What is the difference between mutex and binary semaphore?

1 Answers  


Categories