Answer

The first time MAX is called it is given two real numbers and returns a real number as a result. The second time, it is given two integers and returns an integer as a result. (You can tell what is being returned by looking at what is printed. In one case a decimal point is printed, but not in the other.) This is exactly the way that the arithmetic operators such as + and * work.

Return to lesson.



Hamlet Project
hamlet@cs.utah.edu