UNI 2
Which of the following is a two-dimensional array?
O array anarray20;
O int anarray20;
O int array 20, 20;
O char array 20;
Answers
Answered by
2
Two dimensional array is int array 20,20
Step-by-step explanation:
Because Two dimensional array has both row and columns
Answered by
0
Correct question:
Which of the following is a two-dimensional array?
A. array anarray[20][20];
B. int anarray[20][20];
C. int array[20, 20];
D. char array[20];
Answer:
Correct option is (B) int anarray[20][20];
Syntax:
datatype array_name[M][N];
Option A cannot be the answer because array is not a data type.
Option B can be the answer because it is according to the syntax.
Option C cannot be the answer because it is not according to the syntax.
Option D is a one dimensional array.
So, the correct option is (B) int anarray[20][20];
Similar questions