In this exercise we will explore pointers and references relative to each other. Play and learn! We do this in context of a function that returns the maximum of two doubles. Here is the function with call-by-value parameters:
double max(double a, double b){ return a < b ? b : a; }
In all cases below, program the max function, call it, make make sure you get the expected result from the call.
Can you imagine other interesting variations?