This site features a collection of common technical interview questions gathered by a group of programmers who have been through, and given, lots of technical interviews. There is an emphasis on C++ and game programming technical interviews, but most of the questions are relevant to any technical interview.
Namespace is used to avoid function name clashes between different libraries, it declares all function/variables within a scope which remains hidden otherwise until explictly mentioned which is done by the keywords ‘using’.
1 Comment so far
Leave a comment
Namespace is used to avoid function name clashes between different libraries, it declares all function/variables within a scope which remains hidden otherwise until explictly mentioned which is done by the keywords ‘using’.
eg.
namespace myfuncs {
void func1();
int func2();
int fg;
}
..
..
..
in some file when you write …
…
using namespace myfuncs;
…
By Mayank on 08.28.07 4:03 am | Permalink
Leave a comment
If you are including code in your comment, place it within a <div class='code'></div> tag for better formatting.