What problem does the namespace feature solve?
Answer / nimish singh
Multiple providers of libraries might use common global identifiers causing a name collision when an application tries to link with two or more such libraries. The namespace feature surrounds a library's external declarations with a unique namespace that eliminates the potential for those collisions.
This solution assumes that two library vendors don't use the same namespace identifier, of course.
| Is This Answer Correct ? | 0 Yes | 0 No |
write a C++ programming using for loop: * * * * * * * * * *
What is the default width for ouputting a long integer using the insertion operator?
write a program to insert an element into an array
Where are setjmp and longjmp used in c++?
Which format specifier is used for printing a pointer value?
I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.
How do you clear a buffer in c++?
How size of a class can be calulated?
How a new operator differs from the operator new?
What are move semantics?
Define a constructor - what it is and how it might be called (2 methods)?
List the types of polymorphism in c++?