02/21/00
COM1100 Winter2000 Yuhong Yin
5
Array as function arguments – case 1
nIndividual array elements are passed to a function in the same manner as individual variables; they are simply included as subscript variable when the function call is made.
nExample 1
n// arguments will be passed into the function by value
nint find_min(int x, int y) {
n if ( x < y) return x;
n else        return y;
n }
n