Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is the use of Namespace in c++.

Answer Posted / ramprasad g

The use of namespace is to avoid clash during naming of
variable,classes etc.

Suppose a company wants to release its version of a
function, it can create a separate namespace and then create a
function within that namespace.Another company can create a
function of same name, as long as it is in different
namespace.And the third company can use both the functions
in the same program by using resolving the namespace.


pakage concept of Java is a similar idea.

Is This Answer Correct ?    20 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between c & c++?

1027


What is pure virtual function?

1026


What are register variables?

1089


Do you know the problem with overriding functions?

1045


What does it mean to declare a destructor as static?

1028


What is ios :: in in c++?

1009


Is c++ a low level language?

924


What is ifstream c++?

988


State the difference between pre and post increment/decrement operations.

1034


What is runtime polymorphism in c++?

1103


When to use “const” reference arguments in a function?

1021


Can I uninstall microsoft c++ redistributable?

1055


What is c++ code?

1078


How can we read/write Structures from/to data files?

1073


What are the general quetions are in DEna bank manager IT/System interviews?

1964