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.
|
Difference between dynamic and static castingDifference 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)....