1.

What will be the output of the program ?_x000D_ #include_x000D_ _x000D_ int main()_x000D_ {_x000D_ void fun(int, int[]);_x000D_ int arr[] = {1, 2, 3, 4};_x000D_ int i;_x000D_ fun(4, arr);_x000D_ for(i=0; i<4; i++)_x000D_ printf("%d,", arr[i]);_x000D_ return 0;_x000D_ }_x000D_ void fun(int n, int arr[])_x000D_ {_x000D_ int *p=0;_x000D_ int i=0;_x000D_ while(i++ < n)_x000D_ p = &arr[i];_x000D_ *p=0;_x000D_ }

A. 2, 3, 4, 5
B. 1, 2, 3, 4
C. 0, 1, 2, 3
D. 3, 2, 1 0
Answer» C. 0, 1, 2, 3


Discussion

No Comment Found