-
What will be the output of the following C code?
#include <stdio.h>
void main()
{
int Array[2][3] = {11, 21, 31, , 41, 51};
int k = 0, L = 0;
for (k = 0; k < 2; k++)
for (L = 0; L < 3; L++)
printf("%d", Array[k][L]);
}
-
- 11 21 31 Garbage value 41 51
- 11 21 31 41 15
- Compilation Error
- Runtime Error
- None of these
Correct Option: C
Compilation Error
main.c: In function ‘main’:
main.c:4:40: error: expected expression before ‘,’ token
int Array[2][3] = {11, 21, 31, , 41, 51};