Thursday 11 April 2013

Question: Why do C++ compilers need name mangling?


Question: Why do C++ compilers need name mangling?

 Answer: 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.

No comments:

Post a Comment