First page Back Continue Last page Graphics
Avoiding Modification
If you are using the array in a “read only” form, you can change the parameter to prevent the contents of the array from being modified.
The keyword is const.
int sum_arr ( const int arr[ ], int n)
... function definition ...
Still can read the array, but you can't write the array!