June 2017
Beginner
1296 pages
69h 23m
English
... variable maximumValue and initializes it with the value of parameter x. Of course, it’s possible that parameter y or z contains the actual largest value, so we must compare each of these with maximumValue. Lines 29–31 determine whether y is greater than maximumValue. If so, line 30 assigns y to maximumValue. Lines 34–36 determine whether z is greater than maximumValue. If so, line 35 assigns z to maximumValue. At this point the largest value resides in maximumValue, so line 38 returns that value to line 18. When program control returns to where maximum was called, maximum’s parameters x, y and z no longer exist in memory.
Read now
Unlock full access