AP Computer Science Amediummcq1 pt
The inner loop condition c < grid[r].length is safest because
A.it works even when rows differ in length
B.it counts the rows
C.it is faster
D.it sorts the array
Each row's length is checked.
Ait works even when rows differ in length
Practice more AP Computer Science A questions with full explanations
Practice Unit 8: 2D Array Questions →