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

Is c++ slower than c?

1054


Which operations are permitted on pointers?

1007


What are the advantages of inheritance in c++?

1109


Define the process of handling in case of destructor failure?

1073


If a base class declares a function to be virtual, and a derived class does not use the term virtual when overriding that class, is it still virtual when inherited by a third-generation class?

1044


How can I improve my c++ skills?

1143


When should I use unitbuf flag?

1027


What is a dll entry point?

1015


How do you save a c++ program?

1049


What does I ++ mean in c++?

1114


What is the difference between object-oriented programming and procedural programming?

1241


What is the function to call to turn an ascii string into a long?

1070


What are the basics of local (auto) objects?

1151


What is virtual destructor? What is its use?

1077


Mention the ways in which parameterized can be invoked.

934