


02/21/00
COM1100 Winter2000 Yuhong Yin
Array as function arguments – case 2
nPassing a
complete array of values to a function is in many respects an
easier operation than passing individual elements.
nThe function receives access to the actual array, rather than a copy of the
values in the array.
nIn other
words, C++ always pass a whole array to a function by reference.
n