What will be the output of the following C code? [code] #include <stdio.h> void main() { int a[2][3] = {1, 2, 3, ,

What will be the output of the following C code?
Code:
    #include <stdio.h>
    void main()
    {
        int a[2][3] = {1, 2, 3, , 4, 5};
        int i = 0, j = 0;
        for (i = 0; i < 2; i++)
        for (j = 0; j < 3; j++)
        printf("%d", a[i][j]);
    }
A. 1 2 3 junk 4 5
B. Compile time error
C. 1 2 3 0 4 5
D. 1 2 3 3 4 5
 

Tìm kiếm

Back
Top