is inline function can execute faster than a normal function. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

is inline function can execute faster than a normal function.

9th Dec 2016, 4:14 PM
Waseem Abbas
Waseem Abbas - avatar
3 Answers
0
Pls what's inline function
9th Dec 2016, 5:29 PM
Decodeworms Olamilekan
Decodeworms Olamilekan - avatar
0
yes. Inline functions execute faster then a normal one. DecodesWorm an inline function means that the compiler replaces all the calls of the function with the code inside the function while it compiles. Is declared as inline return_type func_name(all_parameters) { code; } It is faster once it is compiled because the compiler does not need to reference the function during run time. Hope this helps. :)
14th Dec 2016, 9:26 PM
John K
John K - avatar
0
yes
27th Dec 2016, 3:49 PM
Santosh Dussa
Santosh Dussa - avatar