-
What will be the output of the following C code?
#include <stdio.h>
void main()
{
int array[2][3] = {10, 20, 30, 40, 50};
int k = 0, L = 0;
for (k = 0; k < 2; k++)
for (L = 0; L < 3; L++)
printf("%d ", array[k][L]);
}
-
- 10 20 30 40 50
- Compilation Error
- Garbage value
- 10 20 30 40 50 0
- None of these
Correct Option: D
10 20 30 40 50 0