How can a '::' operator be used as unary operator?
Answer / 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 |
What do you mean by C++ access specifiers ?
Shall we use 'free' to free memory assigned by new, What are the further consequences??
What are the differences between public, private, and protected access?
12 Answers IBM, Oracle, Wipro,
write a program that takes two numbers from user that prints the smallest number
explain the reference variable in c++?
char *ch = "abcde"; char c[4]; how to copy 'ch' to 'c'?
What parameter does the constructor to an ofstream object take?
What is the difference between delegation and implemented-in-terms-of?
What does flush do?
How do you establish an is-a relationship?
Live example for static function?
what is oops