0
Array question please explain the output🧐
What is the output of following program? #include <stdio.h> int fun(int arr[]) { arr = arr +1; printf("%d", arr[0]); } int main(void) { int arr[2] = {1,2}; fun(arr); printf("%d", arr[0]); return 0; }
2 Respuestas
+ 1
I fixed your code and commented it. It should help you.
https://code.sololearn.com/cDS9rylZM9m4/?ref=app