
Welcome to C++ 9
Hence, inline functions are preferred over macros. Inline functions are parsed by compiler,
while macros are parsed by the preprocessor. Inline functions have all the advantages
associated with any function, for example, type-checking. Debugging a code that uses an inline
function is much simpler than debugging one that uses macros. Inline functions can be over-
loaded, while macros cannot be overloaded.
1.4 Function Overloading
Let us write a program (Program 1.7) that finds the maximum number from the following set
of numbers.
(i) 11,123 (ii) 121,22,55 and (iii) 34.34,22.11,55.01
Program 1.7
#include<iostream>
using namespace std; ...