Q:

What is the inline function?

0

What is the inline function?

All Answers

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

An inline keyword is a compiler directive that only suggests the compiler substitute the function’s body at the calling the place. It is an optimization technique used by the compilers to reduce the overhead of function calls.

for example,

static inline void Swap(int *a, int *b)
{
    int tmp= *a;
    *a= *b;
    *b = tmp;
}

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

total answers (1)

Embedded C interview questions and answers (2022)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
What is the advantage and disadvantage of the inli... >>
<< What is a reentrant function?...