Multiple choice technology programming languages

The inserting of the code of a called function at the point where the function gets called is achieved by using

  1. Inline functions

  2. virtual functions

  3. Both A and B

  4. None of the above

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

Inline functions eliminate function call overhead by inserting the function's code directly at each call point during compilation, rather than using a standard function call mechanism. This optimization is particularly useful for small, frequently-called functions. Virtual functions enable polymorphism through dynamic dispatch and are not inlined by default.