#include using namespace std; int& max(int& m, int& n) // return type is reference to int { return (m > n ? m : n); // return type is reference to int } int main() { int m = 44, n = 22; cout << m << ", " << n << ", " << max(m,n) << endl; max(m,n) = 55; // changes the value of m from 44 to 55 cout << m << ", " << n << ", " << max(m,n) << endl; return 0; }