Interviewer And Interviewee Guide

C++ Inline Function Interview Question:

Tell me what happens when recursion functions are declared inline?

Submitted by: Administrator
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.
Submitted by: Administrator

Read Online C++ Inline Function Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.