The interviewer asked me this question and not sure if my answer to it was good enough or not. Anyone has any ideas?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The first thought that popped in my head was name mangling. In C++ but not in C, you can have two methods with the same name but different parameters. The compiler has to distinguish between the two methods and thus changes (mangles) the name internally.
Another thing that the C++ compiler must do that in not in C, is deal with the class inheritance. You have abstract classes, overridden methods and virtual methods. That takes a little more processing to sort out.