Pick the incorrect statement about inline functions in C++.

Options

  • A. They save overhead of a return call from a function.
  • B. They are generally very large and complicated function.
  • C. These functions are inserted/substituted at the point of call.
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

B. They are generally very large and complicated function.

Detailed Explanation

Answer: (B) They are generally very large and complicated function.

An inline function is generally useful for a small function where the overhead of a normal function call may be avoided.

The compiler may replace the function call with the actual function body at the point of the call. This can reduce function-call overhead.

Inline functions are normally more suitable for small and simple functions, not very large and complicated functions.

Therefore, statement (B) is incorrect.