Answer Posted / subham chaudhary
The scope operator can be used to refer to members of the global namespace. Because the global namespace doesn’t have a name, the notation :: member-name refers to a member of the global namespace. This can be useful for referring to members of global namespace whose names have been hidden by names declared in nested local scope. Unless we specify to the compiler in which namespace to search for a declaration, the compiler simple searches the current scope, and any scopes in which the current scope is nested, to find the declaration for the name.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do I run a program in notepad ++?
What does it mean to declare a destructor as static?
In a function declaration what does extern means?
What is the difference between while and do while loop?
Is c or c++ more useful?
Can c++ do everything c can?
C is to C++ as 1 is to a) What the heck b) 2 c) 10
Describe private, protected and public?
Can non graphic characters be used and processed in C++?
What methods can be overridden in java?
What is switch case in c++ syntax?
How would you find out if a linked-list is a cycle or not?
What's the order in which the objects in an array are destructed?
Which compiler does turbo c++ use?
Can I learn c++ as my first language?