int[ ][ ] arr = {{1,2},{0},{3,4,5)};
从此题来看,由于arr[2]最长,arr[2] = {3,4,5}; 所以,arr[0]和arr[1]也应该有3个数
系统底层会进行用0填补:
int[ ][ ] arr = {{1,2,0},{0,0,0},{3,4,5}};
下标 0 1 2
0 1 2 0
1 0 0 0 注:如果arr[1][2]的值不为0 那么 arr[1][0] 和 arr[1][1] 的值 0 在写的时候,不能省略
2 3 4 5
所以 arr[1][0] 的值为 0