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 is the difference between #define debug 0 and #undef debug?
Does c++ support exception handling?
Is it legal in c++ to overload operator++ so that it decrements a value in your class?
Show the declaration for a static member variable.
What is a friend function in c++?
Explain how the virtual base class is different from the conventional base classes of the opps.
Is c++ map a hash table?
What is the difference between the compiler and the preprocessor?
Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort
How do you decide which integer type to use?
What is private public protected in c++?
What is wrapper class in c++?
What would happen on forgetting [], while deallocating an array through new?
Why do we use classes in c++?
Explain Memory Allocation in C/C++ ?