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
Can I have a reference as a data member of a class? If yes, then how do I initialise it?
Define namespace in c++?
What is implicit conversion/coercion in c++?
Write about a nested class and mention its use?
Can you pass a vector to a function?
How are pointers type-cast?
What is struct c++?
What is the real purpose of class – to export data?
What is the difference between function overloading and operator overloading?
Who made c++?
What is expression parser in c++
Which of the following is evaluated first: a) && b) || c) !
What are the stages in the development cycle?
What ANSI C++ function clears the screen a) clrscr() b) clear() c) Its not defined by the ANSI C++ standard
How do you write a function that can reverse a linked-list?