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 |
What is an orthogonal base class in c++?
class basex { int x; public: void setx(int y) {x=y;} }; class derived : basex {}; What is the access level for the member function "setx" in the class "derived" above? a) private b) local c) global d) public e) protected
What is command line arguments in C++? What are its uses? Where we have to use this?
What is the use of dot in c++?
Which c++ operator cannot overload?
What is meant by entry controlled loop?
0 Answers Agilent, ZS Associates,
What C++ libraries are you proficient with?
Is python written in c or c++?
What is nested class in c++?
Give an example of run-time polymorphism/virtual functions.
What is runtime polymorphism in c++?
Difference between declaration and definition of a variable.