2.10 Re-do Programming Exercise 2.8 if the input can contain an arbitrary number of salaries.
Hint: Start with an array of length 10. Whenever the number of salaries in the input exceeds the current length of the array field, create a new array of twice that length, copy the old array to the new array-see Programming Exercise 2.9-and then assign the new array (referenc
e) to the old array (reference).
 
 
View Solution
 
 
 
<< Back Next >>