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

Is c++ double?

0 Answers  


Write a program to interchange 2 variables without using the third one.

0 Answers  


Write a program to concatenate two strings.

0 Answers  


What is the v-ptr?

0 Answers  


Why ctype h is used in c++?

0 Answers  






Write a corrected statement in c++ so that the statement will work properly. x =+ 7;

2 Answers  


What is the meaning of c++?

0 Answers  


What is an adaptor class or Wrapper class?

1 Answers  


In a function declaration, what does extern mean?

0 Answers  


Why do we use classes in c++?

0 Answers  


What are the restrictions apply to constructors and destructors?

0 Answers  


How can you quickly find the number of elements stored in a a) static array b) dynamic array ? Why is it difficult to store linked list in an array?how can you find the nodes with repetetive data in a linked list?

0 Answers  


Categories