1.

What is an inline function?(a) A function that is expanded at each call during execution(b) A function that is called during compile time(c) A function that is not checked for syntax errors(d) A function that is not checked for semantic analysisThis question was addressed to me by my college director while I was bunking the class.The above asked question is from Functions topic in division Functions, Namespaces & Exceptions in C++ of C++

Answer»

Right choice is (a) A function that is expanded at each CALL during execution

The BEST I can explain: INLINE function is those which are expanded at each call during the execution of the PROGRAM to reduce the cost of jumping during execution.



Discussion

No Comment Found

Related InterviewSolutions