Inline functions in C++ are a type of ____________ optimization.

  • Code
  • Compiler
  • Memory
  • Runtime
Inline functions in C++ are a type of compiler optimization. When you declare a function as inline, you suggest to the compiler that it should insert the code of that function directly into the caller's code, avoiding the overhead of a regular function call. This can lead to better performance in some cases.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *