C++ Inline Function Question:

described when recursion functions are declared inline?

Tweet Share WhatsApp

Answer:

The call to the body of the function is replaced by an inline function. This reduces the saving context on stack overhead. This process is efficient when the size of the function is small and invoked occasionally. Deep nesting of a method is done when a function is invoked recursively. The inline function is invoked recursively, and every call to itself is replaced with the body of the function, thus consumes a lot of code space.

Download C++ Inline Function PDF Read All 27 C++ Inline Function Questions
Previous QuestionNext Question
Described the disadvantages of using macro and inline functions?By default, if function with minimum lines of code is declared and defined inside the class becomes Inline function.

a. True
b. False