What is name mangling in C++?

What is name mangling in C++?
A. The process of adding more information to a function name so that it can be distinguished from other functions by the compiler
B. The process of making common names for all the function of C++ program for better use
C. The process of changing the names of variable
D. The process of declaring variables of different types
 
Answer: a
Explanation: Name mangling is the process of adding some more information to a function name so that it can be distinguished from other functions by the compiler. This is used when a programmer uses the concept of function overloading in his/her program.
 

Tìm kiếm

Back
Top