下面程序使二维数组a[][]的第一行元素以后为零,但保留结尾数据-999,如下所示: 1 2 3 4 0 0 0 0 0 0 0 -999 #include
int main(){ static int a[][4]={{1,2,3,4}, {5,6,7,8}, {9,10,11,-999}}; int j, k, *pa; pa = ; while(*pa != -999){ ; pa++; } for(j = 0; j < 3; j++){ for(k = 0; k < 4; k++) printf("%5d", ); printf("\n"); } return 0; }