Multiple choice

In C++, what are the names given to the functions which are not actually called rather their codes are substitued every time they are invoked?

  1. Inline functions

  2. Constructors

  3. Destructors

  4. None of the above

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

Inline functions are very useful when we need to create efficient code as their code is expanded each time they are invoked. Inline functions are preceded by inline keyword. For example: inline int findlarge(int x, int y) {return x > y ? x : y;}. Hence, this is the correct answer.