Loading...
Loading...
Loading Curriculum...
Loading Subject...
Loading Topic...
Loading Lesson...
Loading Lab...
A request to the compiler to replace function calls with the actual function code to eliminate call overhead.
inline int max(int a, int b) {
return (a > b) ? a : b;
}Eliminates stack push/pop overhead for small functions.
May increase binary size (code bloat) if function is large.
inline is only a suggestion. The compiler can ignore it for complex functions containing loops, recursion, or static variables.