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


Please Help Members By Posting Answers For Below Questions

What are constructors in oop?

772


What is the diamond problem in inheritance?

795


Why is oop useful?

798


What is inheritance write a program to show use of inheritance?

843


What are the 4 pillars of oop?

863


Can enum be null?

748


What is a class in oop?

757


What is polymorphism and its types?

794


Why is static class not inherited?

804


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.

1972


What is use of overloading?

828


i got a backdoor offer in process global,Bangalore..Can i work with it?

2562


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?

1787


How oops is better than procedural?

801


Why do while loop is used?

754