Q: A two-dimensional array is also called
-
A
Single array
-
B
Pointer array
-
C
Matrix
-
D
String
C
Answer:
C
Explanation:
Answer: C
A two-dimensional array in C++ stores data in the form of rows and columns, just like a table.
Because of this row–column structure, a two-dimensional array is commonly referred to as a matrix.
Why other options are incorrect
-
A) Single array ❌
A single array refers to a one-dimensional array, not a 2D array.
-
B) Pointer array ❌
A pointer array is an array of pointers, which is different from a 2D array.
-
D) String ❌
A string is a character array, not necessarily two-dimensional.
Related Topic:
Share Above MCQ