adplus-dvertising
CPP MCQ
Why inline functions are useful?
A)
The function has several static variables
B)
Functions are large and contain several nested loops
C)
Usually, it is small, and we want to avoid the function calls
D)
All of the above

Correct Answer : Option (C) :   Usually, it is small, and we want to avoid the function calls

Explanation : In general, the inline functions are very small in size and more often used in the place of the macros as they are the substitute of the macros and many times better than the macros.