1.

What will be the output of the program?_x000D_ #include_x000D_ _x000D_ int main()_x000D_ {_x000D_ typedef int arr[5];_x000D_ arr iarr = {1, 2, 3, 4, 5};_x000D_ int i;_x000D_ for(i=0; i<4; i++)_x000D_ printf("%d,", iarr[i]);_x000D_ return 0;_x000D_ }

A. 1, 2, 3, 4
B. 1, 2, 3, 4, 5
C. No output
D. Error: Cannot use typedef with an array
Answer» B. 1, 2, 3, 4, 5


Discussion

No Comment Found