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

Which is most difficult programming language?

1098


What does std mean in c++?

1120


What does I ++ mean in c++?

1100


What are the characteristics of friend functions?

1011


What does asterisk mean in c++?

1113


What happens if a pointer is deleted twice?

1271


Explain the difference between c & c++?

1084


What are the advantages of using a pointer?

1076


If all is successful, what should main return a) 0 b) 1 c) void

1009


What c++ is used for?

1072


Why do we need pointers?

1001


What is the use of dot in c++?

1080


What is atoi?

967


Explain the volatile and mutable keywords.

1066


What header file is needed for exit(); a) stdlib.h b) conio.h c) dos.h

1049