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()?
MCQ Subject: Programming in C
-
In C, given the array `int arr[5] = {1, 2, 3, 4,…
In C, given the array `int arr[5] = {1, 2, 3, 4, 5};` and a pointer `int *ptr = arr;`, which statement correctly points `ptr` to the last element of `arr`?