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]); }

  1. A.

    1

  2. B.

    2

  3. C.

    0

  4. D.

    None of these

Attempted by 448 students.

Show answer & explanation

Correct answer: B

Answer: 2 Array contents by row: Row 0

Explore the full course: Up Lt Grade Assistant Teacher 2025