1.

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 typesI had been asked this question in final exam.Enquiry is from C++ Concepts in section Basics Concepts of C++ of C++

Answer»

The CORRECT CHOICE is (a) The process of adding more information to a function NAME so that it can be DISTINGUISHED from other functions by the compiler

The explanation is: 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.



Discussion

No Comment Found

Related InterviewSolutions