C++ Program to find biggest of two numbers using Inline Functions
Program
#include<iostream>
using namespace std;
inline int max(int a, int b)
{
return a > b ? a : b;
}
int main()
{
cout << max(25, 11) << " is biggest" << endl;
cout << "Biggest number is: " << max(8, 12) << endl;
}
Output
25 is biggest
Biggest number is: 12