Output
Variable Name     Value in Memory
            i
            j
            k
num1
num2
result
  1  #include <iostream>
  2  using namespace std;
  3  
  4  // Return the max between two numbers 
  5  int max(int num1, int num2)
  6  {
  7    int result;
  8  
  9    if (num1 > num2)
 10      result = num1;
 11    else
 12      result = num2;
 13  
 14    return result;
 15  }
 16  
 17  int main()
 18  {
 19    int i = 5;
 20    int j = 2;
 21    int k = max(i, j);
 22    cout << "The maximum between " << i <<
 23      " and " << j << " is " << k << endl;
 24  
 25    return 0;
 26  }