Why do C++ compilers need name mangling?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is it necessary to use a reference in the argument to the copy constructor?

845


What are the advantages of using typedef in a program?

848


What are c++ variables?

765


Explain the difference between c & c++?

797


How can I disable the "echo" feature?

817


Explain the difference between struct and class in terms of access modifier.

920


Is atoi safe?

809


What is doubly linked list in c++?

823


Is c++ platform dependent?

833


What causes a runtime error c++?

809


Why are arrays usually processed with for loop?

977


What's c++ used for?

822


What are the types of array in c++?

799


What is std namespace in c++?

895


Why can’t you call invariants() as the first line of your constructor?

757