AP Computer Science Aeasymcq1 pt
Which is a valid declaration of a 2D int array?
A.int[][] grid;
B.int[2] grid[2];
C.grid int[][];
D.int[] grid[]();
The declaration is legal.
Aint[][] grid;
Practice more AP Computer Science A questions with full explanations
Practice Unit 8: 2D Array Questions →