









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










6.5 Passing Arrays to Functions
the array without any brackets
int myArray[ 24 ];
myFunction( myArray, 24 );
6.5 Passing Arrays to Functions
void modifyArray( int b[], int arraySize );
Effects of passing entire array by reference:
The values of the original array are:
0 1 2 3 4
The values of the modified array are:
0 2 4 6 8
Effects of passing array element by value:
The value of a[3] is 6
Value in modifyElement is 12
The value of a[ 3 ] is 6
6.6 Sorting Arrays