Consider the C code: void arr_increment(int *arr) { arr++; } int main()…

Written by

in

Consider the C code: void arr_increment(int *arr) { arr++; } int main() { int arr[5] = {1,2,3,4,5}; arr_increment(arr); return 0; } What is the effect of arr_increment() on the array arr in main()?

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

More posts