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 |
Distinguish between a # include and #define.
Generally variables are stored in heap memory. When he variables are created in stack?
Evaluate !(1&&1||1&&0) a) Error b) False c) True
Why Pointers are not used in C++?
What are the differences between a struct and a class in C++?
What is data abstraction? How is it different from data encapsulation?
Why c++ is the best language?
What are the two types of comments, and how do they differ?
Can we use resume in error handling i.e. in the catch block
What should main() return in c and c++?
Are there any new intrinsic (built-in) data types?
How come you find out if a linked-list is a cycle or not?