30
Passing Arrays to Functions
•
Specify name without brackets
–
To pass array
myArray
to
myFunction
–
int myArray[ 24 ];
–
myFunction(myArray,24);
–
Array size usually passed, but not
required
•
Useful to iterate over all elements