Multiple choice

Which of the following is not true about inline function in C++?

  1. This function instructs the compiler to insert copy of the code of that function at each point wherever that function is called at compile time.

  2. To make a function inline, we should place inline keyword before that function.

  3. Inline function reduces function calling overhead.

  4. Inline function decreases the function size.

  5. Inline function can make the header file size large.

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

No, inline function may increase the function size of your program, so this is the false statement about inline function in C++.