Why do C++ compilers need name mangling?

Answers were Sorted based on User's Feedback



Why do C++ compilers need name mangling?..

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

Why do C++ compilers need name mangling?..

Answer / siva

Compilers need name mangling to support/implement function
overloading.

Is This Answer Correct ?    2 Yes 0 No

Why do C++ compilers need name mangling?..

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

Post New Answer

More C++ General Interview Questions

Const char *p , char const *p What is the difference between the above two?

0 Answers   TCS,


What is anonymous object in c++?

0 Answers  


Why did you leave your last job?

2 Answers  


How do you remove an element from a set in c++?

0 Answers  


How can I learn dev c++ programming?

0 Answers  






What are features of c++?

0 Answers  


What are the static members and static member functions?

1 Answers  


What is a friend function in c++?

2 Answers  


What is a breakpoint?

0 Answers  


Define friend function.

0 Answers  


What is an action class?

1 Answers  


Explain some examples of operator overloading?

0 Answers  


Categories