Where are inline functions expanded?

  • At the calling point
  • In a separate source file
  • In a shared library
  • In the header file
Inline functions are expanded at the calling point. When you use the inline keyword, the compiler replaces the function call with the actual function code at the location where the function is called, reducing the overhead of a traditional function call.
Add your answer
Loading...

Leave a comment

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