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

Why is polymorphism used?

575


program for insertion ,deletion,sorting in double link list

2274


What is encapsulation oop?

568


Why is abstraction used?

598


What is overriding vs overloading?

576






What are the 3 pillars of oop?

607


What does no cap mean?

586


How do you define a class in oop?

619


What is interface? When and where is it used?

1656


Describe these concepts: Polymorphism, Inheritance and Abstraction.

604


There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.

1446


What is persistence in oop?

657


write a programe to calculate the simple intrest and compund intrest using by function overlading

1658


What is destructor give example?

595


Which method cannot be overridden?

572