Q:

WHAT IS INLINE FUNCTION IN C?

belongs to collection: C INTERVIEW QUESTIONS AND ANSWERS

0

WHAT IS INLINE FUNCTION IN C?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

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.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

C INTERVIEW QUESTIONS AND ANSWERS

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
IS IT POSSIBLE TO PRINT “HELLO WORLD” WITHOUT ... >>
<< CAN VARIABLE NAME HAVE SPECIAL SYMBOLS IN C?...