1.

What are inline member functions?(a) Member functions which can be called without object(b) Member functions whose definition is expanded in place of its call(c) Member functions whose definition is faster than simple function(d) Member function which is defined in single lineI got this question during an internship interview.My query is from Member Functions topic in chapter Class Members & Types of Object Oriented Programming

Answer»

The CORRECT option is (b) Member FUNCTIONS WHOSE definition is expanded in place of its call

Easy EXPLANATION - The member functions whose definition is expanded at the call, and no jump to function and return happened, are TERMED as inline functions. This is used to make the program faster and more efficient.



Discussion

No Comment Found

Related InterviewSolutions