WHAT IS INLINE FUNCTION IN C?
A normal function becomes inline function when function prototype of the function is prepended with keyword “inline”.
The property of inline function is, compiler inserts the entire body of the function in the place where inline function name is used in the program.
Advantage of inline function is, it does not require function call and does not return anything from the function.
Disadvantage of inline function is, it increases file size as same function code is copied again and again in the program wherever it is called.
total answers (1)
start bookmarking useful questions and collections and save it into your
own study-lists, login now to start creating your own collections.