Printing lengths of nested arrays

Report a typo

What does this code print?

int[][] c = { 
   { 40, 30, 25, 30, 15},
   { 13, 12, 16 },
   { 101, 125, 114, 131 }
}; 

System.out.print(c.length + " ");

for (int[] nestedArray : c) {
   System.out.print(nestedArray.length + " ");
}
Select one option from the list
___

Create a free account to access the full topic