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
What does n mean in c++?
Explain the difference between struct and class in terms of access modifier.
explain the reference variable in c++?
What are disadvantages of pointers?
What is private, public and protected inheritance?
what is scupper?
How do you clear a map in c++?
What is function overriding in c++?
why is iostream::eof inside a loop condition considered wrong?
What are the rules for naming an identifier?
what is upcasting in C++?
What is a vector c++?
Using a smart pointer can we iterate through a container?
Must accepts "Maestro Cards" Tax for bike should be less than 15 Total number of lanes is more than 10 Must provides monthly pass Write a method: boolean isGoodTollBridge(String[] cardsAccepted, String[] tollTax, boolean hasMonthlyPass, int numberOfLanes); String[] cardsAccepted A String array of names of card types accepted for payment of toll tax, it can be null if the toll does not accept any card String[] tollTax A String array of toll tax chart (say “Train : 300â€Â,â€ÂBullCart : 10â€Â) boolean hasMonthlyPass This parameter defines whether there is any monthly pass available or not int numberOfLanes This parameter defines the number of lanes for each side
What is stream and its types in c++?