AP Computer Science Amediummcq1 pt
With rows of different lengths, each row's length must be read by
A.grid[r].length inside the loop
B.grid[0].length always
C.grid.length
D.a constant
Each row's own length is used.
Agrid[r].length inside the loop
Practice more AP Computer Science A questions with full explanations
Practice Unit 8: 2D Array Questions →