Multiple choice

What is/are the situation(s) where function is not treated as inline?
a) If the function contains recursion b) If the function contains nested loop c) If the function contains multiple decision making statement like switch Inline function: whenever the function is called the function calling is replaced by function body.

  1. Only a

  2. Both a and b

  3. All a, b and c

  4. Both b and c

  5. None of the above

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

The program code is not simple if it contains loops, decision making statements and recursion. Option 3 is the correct answer.