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 are constructors in oop?
What is the diamond problem in inheritance?
Why is oop useful?
What is inheritance write a program to show use of inheritance?
What are the 4 pillars of oop?
Can enum be null?
What is a class in oop?
What is polymorphism and its types?
Why is static class not inherited?
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.
What is use of overloading?
i got a backdoor offer in process global,Bangalore..Can i work with it?
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
How oops is better than procedural?
Why do while loop is used?