Question 136

The main purpose of an inline function in C++ is to:

  1. AHide data
  2. BAllocate memory
  3. CReduce function-call overhead
  4. DAllow recursion
Show answerHide answer

Correct answer: (C) Reduce function-call overhead

Explanation

The compiler may replace the call with the function body.

From DSSSB TGT Computer Science Full Mock Test 4

This is question 136 of DSSSB TGT Computer Science Full Mock Test 4. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.