Write a note on inline function.
Answers
Answered by
0
Hyy dear
The inline functions are a C++ enhancement feature to increase the execution time of a program. ... NOTE- This is just a suggestion to compiler to make the function inline, if function is big (in term of executable instruction etc) then, compiler can ignore the “inline” request and treat the function as normal function.
Hope it will help you..
The inline functions are a C++ enhancement feature to increase the execution time of a program. ... NOTE- This is just a suggestion to compiler to make the function inline, if function is big (in term of executable instruction etc) then, compiler can ignore the “inline” request and treat the function as normal function.
Hope it will help you..
Answered by
1
Answer:
An inline function is used in C/C++ programming where the code of the function is get copied by the compiler when any function called this particular inline functions. An inline function is an important feature of the C/C++ programming language.
There is both merit and demerit of using this inline function. If an inline function is short then it saves the time of the compiler but it takes so much time to copy the source code of large line of code of inline functions.
Similar questions