Exam-style question
Try this first
How do you declare a two-dimensional array in most programming languages?.
- A.type array[size];
- B.type array[size1][size2];
- C.array[size1][size2] type;
- D.array[size] type;
Answer and explanation
Concise answer
type array[size1][size2];
Why this is correct
This syntax specifies the type and dimensions of the 2D array.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
