0 votes
in C Plus Plus by

What is an Inline function in C++?

1 Answer

0 votes
by

Inline function is a function that is compiled by the compiler as the point of calling the function and the code is substituted at that point. This makes compiling faster. This function is defined by prefixing the function prototype with the keyword “inline”.

Such functions are advantageous only when the code of the inline function is small and simple. Although a function is defined as Inline, it is completely compiler dependent to evaluate it as inline or not.

Related questions

+2 votes
asked Jun 19, 2019 in C Plus Plus by anonymous
+1 vote
0 votes
asked Jan 7 in C Plus Plus by GeorgeBell
0 votes
asked Nov 24, 2020 in C Plus Plus by sharadyadav1986
...