

MCQOPTIONS
Saved Bookmarks
1. |
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]); } |
A. | 10 20 30 40 50 |
B. | Compilation Error |
C. | Garbage value |
D. | 10 20 30 40 50 0 |
E. | None of these |
Answer» E. None of these | |