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 use of this pointer?

1204


What is new in c++?

1154


Can we inherit constructor in c++?

1143


What are the uses of pointers?

1135


Is java the same as c++?

1037


Is c++ a difficult language?

1205


What is the use of vtable?

1194


What is the protected keyword used for?

1168


What is c++ programming language?

1155


Why is c++ still best?

1025


Of the numbers 12 23 9 28 which would be at the top of a properly implemented maxheap a) 28 b) 9 c) Any of them could be

1470


What is a local reference?

1235


What is virtual function? Explain with an example

1147


What does count ++ do in c++?

1255


Write a function that swaps the values of two integers, using int* as the argument type?

1082