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 a namespace in c++?

Answer Posted / glibwaresoftsolutions

In this set of fresher-level C++ interview questions, one common topic is the concept of namespaces. Namespaces in C++ are used to organize multiple classes and functions, which simplifies application management..
The most commonly used namespace in C++ is the std namespace, which contains components of the standard library. Programmers can also create custom namespaces to encapsulate related functionality, helping to avoid name clashes in larger projects.
To access elements within a namespace, you can utilize the scope resolution operator (::) or the using directive.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the importance of mutable keyword?

1020


Which is not an ANSII C++ function a) sin() b) tmpnam() c) kbhit()

1522


What does std :: flush do?

1117


What is the difference between *p++ and (*p)++ ?

1347


What does new return if there is insufficient memory to make your new object?

1006


What do you mean by function overriding & function overloading in c++?

1163


Write about the scope resolution operator?

1017


How to give an alternate name to a namespace?

1075


Will a catch statement catch a derived exception if it is looking for the base class?

997


What is the use of default constructor?

1078


How much do coding jobs pay?

997


What is the difference between passing by reference and passing a reference?

1067


We use library functions in the program, in what form they are provided to the program?

1077


Is c or c++ more useful?

1031


Describe public access specifiers?

1099