Getting More from Functions 531
18
- Write a function that (a) is passed an array of any numeric data type as an argu-
ment, (b) finds the largest and smallest values in the array, and (c) returns pointers
to these values to the calling program. (Hint: You need some way to tell the func-
tion how many elements are in the array.) - Write a function that accepts a string and a character. The function should look for
the first occurrence of the character in the string and return a pointer to that loca-
tion.
29 448201x-CH18 8/13/02 11:14 AM Page 531