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 |
How does the copy constructor differ from the assignment operator (=)?
Write a single instruction that will find the remainder of integral division when x is divided by y. Have the answer stored in z.
What is a null object in c++?
what is multi-threading in C++?
What is an iterator class in c++?
Explain what you mean by a pointer.
Why do we use iterators?
What is the auto keyword good for in c++?
Is oops and c++ same?
Explain object slicing in c++?
What does asterisk mean in c++?
What is #include c++?