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;
}
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,
need an explanation for this answer? contact us directly to get an explanation for this answer