Call function in cout : cout « Console « C++






Call function in cout

Call function in cout
#include <iostream>
using namespace std;

inline int max(int a, int b)
{
  return a>b ? a : b;
}

int main()
{
  cout << max(10, 20);
  cout << " " << max(99, 88);

  return 0;
}


           
       








Related examples in the same category

1.Use function in coutUse function in cout
2.Using the cout Object with Numeric ArraysUsing the cout Object with Numeric Arrays
3.Unformattwd Input/Output: cin.get and getlineUnformattwd Input/Output: cin.get and getline