(1)按储存顺序全部赋初值 int a[3][4] = {0,1,2,3,4,5,6,7,8,9,10,11};//第零行是0-3,第一行4-7,第二行8-11 //
(2)按行全部赋初值 int b[2][2]={{0,1},{4,5}};//每一行用大括号括起来//
(3)按存储顺序部分赋初值 int c[2][3] = {0,1,2};//相当于第零行初值为0-2,即剩余未被赋初值的自动赋初值为0 //
(4)按行部分赋初值 int d[3][4] = {{0,1,2},{3,4,5},{6}};//第零行是0,1,2,0,第一行是3,4,5,0,第二行是6,0,0,0//
(5)省略行数赋初值,不能省略列数 int e[][3]={0,1,2,3};//每三个作为一行,即第零行是0-2,第一行是3,0,0,默认就是两行 int f[3][];//没有列数会报错