嵌套的花括号进行初始化多维数组:
如1
short cantaloupe[2][5]={
{10,12,3,4,一5},
{31,22,6,0,-5},
};
如2
intrhubarb[][3]={{0,0,0},{1,1,1},};
建立指针数组进行初始化多维数组:
如:
char vegetables[ ][9] ={“carrot”,
“celery”,
“corn”,
“cilantro”,
“crispy fried patatoes”}
char *vegetables[]={“carrot”,
“celery”,
“corn”,
“cilantro”,
“crispy fried patatoes”}

建立数组进行初始化多维数组:
introw_1[]={1,2,3,4,5,-1}; /*一1是行结束标志*/
introw_2[]={6,7,-1};
introw_3[]={8,9,10,-1};
int*weight[]={
row_1,
row_2,
row_3
};