Home Subjects C Programming Arrays & Strings

C Programming
Arrays & Strings

C language from basics to advanced placement prep

21 Q 10 Topics Take Mock Test
Advertisement
Difficulty: All Easy Medium Hard 21–21 of 21
Topics in C Programming
Consider a 2D array int matrix[3][3]. If we access matrix as a 1D array, how many total elements can we access?
A 3
B 6
C 9
D 27
Correct Answer:  C. 9
EXPLANATION

2D array is stored contiguously in memory. 3x3 array has 9 elements total, accessible as a 1D array of 9 elements.

Test
IGET
IGET AI
Online · Exam prep assistant
Hi! 👋 I'm your iget AI assistant.

Ask me anything about exam prep, MCQ solutions, study tips, or strategies! 🎯
UPSC strategy SSC CGL syllabus Improve aptitude NEET Biology tips