What happens when recursion functions are declared inline? - C++

What happens when recursion functions are declared inline?

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.
Advantages and disadvantages of using macro and inline functions - C++
Advantages and disadvantages of using macro and inline functions - A textual substitution is provided by a macro as a constant, where as an inline function is procedure which is called at each time...
What are ways to avoid memory leaks?
What are ways to avoid memory leaks? - A memory leak is the effect of running out of memory....
Difference between dynamic and static casting
Difference between dynamic and static casting - static_cast are used in two cases:1) for implicit casts that the compiler would make automatically anyway (bool to int) 2) as a mandatory forced cast (float to int)....
Post your comment