Lcet4 2
Lcet4 2
C++ suppliers’ programmers with the inline keyword, which can speed up programs by making very
short functions execute more efficiently. Normally a function resides in a separate part of memory,
and is referred to by a running program in which it is called. Inline functions save the step of retrieving
the function during execution time, at the cost of a larger compiled program.
Function Overloading:
Overloading refers to the use the same thing for different purposes. C++ also permits overloading of
functions. This means that we can use the same function name to create functions that perform a variety
of different tasks. We can design a family of functions with one function name but with different
argument lists. The function would perform different operations depending on the argument list in the
function call.