Interview Questions   Tutorials   Discussions   Programs   Videos   

C++ - What is Namespace?

asked marvit August 19, 2014 01:49 AM  

What is Namespace?


1 Answers

answered By bhjahnavi   0  
In general, a namespace is a container for a set of identifiers (also known as symbols, names). Namespaces provide a level of direction to specific identifiers, thus making it possible to distinguish between identifiers with the same exact name.
A namespace is designed to overcome the difficulty and is used as additional information to differentiate similar functions, classes, variables etc. with the same name available in different libraries. Using namespace, you can define the context in which names are defined. In essence, a namespace defines a scope.
   add comment

Your answer

Join with account you already have



 Write A Tutorials
Online-Classroom Classes

  1 person following this question

  Question tags

c++ × 1

Asked 2 years and 4 months ago ago
Number of Views -173
Number of Answers -1
Last updated
2 years and 2 months ago ago

  Similar questions

Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!