聯發筆試 一個數組的使用
#include <stdio.h>void foo(int b[][3])
{
? b++;
? b[1][1]=9;
}
int main()
{
?? ?int a[][3]={{1,2,3},{4,5,6},{7,8,9}};
??? foo(a);
??? printf("%d,%d\n",a[1][2],a[2][1]);
}
6,9
posted on 2007-10-22 00:45 旅途 閱讀(719) 評論(0) 編輯 收藏 引用 所屬分類: C/C++