Technical Discussion :: C++
Home > Technical Interview Q&A > C++ > Discussion
58 / 187
What do you mean by inline function?
Answer:
The idea behind inline functions is to insert the code of a called function at the point where the function is called. If done carefully, this can improve the application's performance in exchange for increased compile time and possibly (but not always) an increase in the size of the generated binary executables.
Asked In ::
Manoj Singh
23 Feb, 2019 5:07 AM
The idea behind inline functions is to insert the code of a called function at the point where the function is called. If done carefully, this can improve the application's performance in exchange for increased compile time and possibly (but not always) an increase in the size of the generated binary executables.
Amarjit
23 Feb, 2019 5:07 AM
An inline function looks like a normal function in the source file but inserts the function code directly into the calling program. Inline functions execute faster but may require more memory than normal functions unless they are very small.