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 |
What is c++ mutable?
What is private public protected in c++?
Explain deep copy and a shallow copy?
Why do we use string in c++?
When volatile can be used?
What is heap sort in c++?
Why do we need function?
What is a "RTTI"?
Why c++ is not a pure oop language?
Explain public, protected, private in c++?
How does class accomplish data hiding in c++?
What is the difference between mutex and binary semaphore?