in C Plus Plus by
Q:
What is Name Mangling?

▼ Show 1 Answer

0 votes
by

C++ compiler encodes the parameter types with function/method into a unique name. This process is called name mangling. The inverse process is called as demangling.

Example:

A::b(int, long) const is mangled as ‘b__C3Ail'.

For a constructor, the method name is left out.

That is A:: A(int, long) const is mangled as ‘C3Ail’.

Learn More with Madanswer

Related questions

0 votes
asked Jun 11, 2020 in C Plus Plus by Robindeniel
...