有誰(shuí)能告訴我關(guān)于這個(gè)二維數(shù)組的函式存在什么問(wèn)題嗎?無(wú)法正常運(yùn)行。include <stdio.h>int (*t)[3];void print(t){int i, j;for (i = 0; i < 3; i++){ for (j = 0; j < 3; j++){ printf("%d",t[i][j]);
} printf("\n");
}}int main(){int v[3][3] = {
{1, 2, 3},
{4, 5, 6},
{7, 8, 9}
};
print(&v[0]);
return 0;}
- 1 回答
- 0 關(guān)注
- 588 瀏覽
添加回答
舉報(bào)
0/150
提交
取消