How to give an alternate name to a namespace?



How to give an alternate name to a namespace?..

Answer / Sachin Kumar Singh

To give an alternate name to a namespace, you can use the scope resolution operator (::) along with the namespace alias declaration. For example: `namespace new_name = original_namespace;`

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What do you mean by inheritance in c++? Explain its types.

1 Answers  


What will happen if I allocate memory using "new" and free it using "free" or allocate sing "calloc" and free it using "delete"?

3 Answers  


Why do we use templates?

1 Answers  


Define pure virtual function?

1 Answers  


Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

1 Answers   CTS,


Explain about Garbage Collector?

1 Answers  


What is conversion constructor?

2 Answers   TCS,


Is empty stack c++?

1 Answers  


What are c++ data types?

1 Answers  


Is ca high or low level language?

1 Answers  


What are references in c++?

1 Answers  


what is data Abstraction? and give example

147 Answers   Aaditya Info Solutions, American Express, CMS, College School Exams Tests, Data Entry Operator, First Advantage, Google, HCL, IBM, Infosys, Microsoft, Mind Links, NIIT, Oracle, Pact, QBit Systems, TCS, WAYA, Wipro,


Categories