Categories

Jun 11 in C++

Q: What is Name Mangling?

1 Answer

Jun 11

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’.

Click here to read more about C++
Click here to read more about Insurance

Related questions

Madanswer
Jun 11 in C++
Jul 16, 2019 in C++
Jun 15 in C++
...