What is the use of unnamed namespaces in OOPS?
The only advantage I know is that they dont need the scope
resolution operator while accessing them. I want to know
some other advantages of unnamed namespaces...
Answer Posted / c++ coder
in addition to the advantage mentioned above , there is one
more that the namespace is local to the file and one cannot
use it into another by 'using namespace' since it is
unnamed.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is polymorphism give a real life example?
What is overriding in oops?
Why is encapsulation used?
Why multiple inheritance is not possible?
What are different oops concepts?
How do you define a class in oop?
What is inheritance in simple words?
Write a program to reverse a string using recursive function?
What is encapsulation oop?
Why do we need oop?
What is an interface in oop?
when to use 'mutable' keyword and when to use 'const cast' in c++
How to use CMutex, CSemaphore in VC++ MFC
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)
What is abstraction and encapsulation?