Why do C++ compilers need name mangling?
Answers were Sorted based on User's Feedback
Answer / guest
Name mangling is the rule according to which C++ changes
function's name into function signature before passing that
function to a linker. This is how the linker differentiates
between different functions with the same name.
Is This Answer Correct ? | 7 Yes | 1 No |
Answer / siva
Compilers need name mangling to support/implement function
overloading.
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / achal ubbott
It is by name mangling that a c++ compiler is able to
support function overloading.It is the way of
differentiating functions based on their name,number and
order and type of parameters. Unfortunately ISO has not set
any standard procedure for mangling names. So different c++
compiler vendors implement it in different ways.
Is This Answer Correct ? | 2 Yes | 0 No |
Const char *p , char const *p What is the difference between the above two?
What is anonymous object in c++?
Why did you leave your last job?
How do you remove an element from a set in c++?
How can I learn dev c++ programming?
What are features of c++?
What are the static members and static member functions?
What is a friend function in c++?
What is a breakpoint?
Define friend function.
What is an action class?
Explain some examples of operator overloading?