What is the output of the following C program? #include <stdio.h> void main()…
2022
What is the output of the following C program? #include <stdio.h> void main() { int a[3][2] = { {1,2}, {2,1}, {2,2} }; print("%d", a[1][0]); }
- A.
1
- B.
2
- C.
0
- D.
None of these
Attempted by 448 students.
Show answer & explanation
Correct answer: B
Answer: 2 Array contents by row: Row 0