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
What are smart pointers?
What is a loop? What are different types of loops in c++?
Can a Structure contain a Pointer to itself?
What is #include math h in c++?
What is a buffer c++?
How do you differentiate between overloading the prefix and postfix increments?
What is a memory leak c++?
If dog is a friend of boy, is boy a friend of dog?
Which field is used in c++?
What is function prototyping? What are its advantages?
What is an arraylist c++?
What is else if syntax?
What are features of c++?
What is the syntax for a for loop?
What are the restrictions apply to constructors and destructors?