Beginner Compilers & Programming Language Theory
Q26 / 100

What is name mangling in C++ compilers?

Correct! Well done.

Incorrect.

The correct answer is B) Encoding function names with type signature information to support function overloading and templates in compiled symbol tables

B

Correct Answer

Encoding function names with type signature information to support function overloading and templates in compiled symbol tables

Explanation

C++ allows overloaded functions (same name, different parameters). Linkers work on unique names, so compilers encode: foo(int,float) → _Z3fooif. extern "C" disables mangling for C interop.

Progress
26/100