// This function tells us how much the current money will be increased by the help of the factor. // We have already given a default value to factor to start with, which can be overwritten. return ...
Redo Exercise 4.5 using inline function. Test the function using a main program.
The replacement of a function call by a copy of the code of the function can be an effective optimization, particularly if execution speed is the priority. This article takes a look at how inlining ...