怎样从二维数组中取一个数
答案:2 悬赏:30 手机版
解决时间 2021-12-02 22:29
- 提问者网友:蓝莓格格巫
- 2021-12-02 18:31
怎样从二维数组中取一个数
最佳答案
- 五星知识达人网友:街头电车
- 2021-12-02 19:42
data_type test_ary[i][j]={……};
data_type target;
1、target=test_ary[x][y];(x2、data_type (*p_test_ary)[j];
p_test_ary=test_ary;
target=*(*(p_test_ary+x)+y);(x
data_type target;
1、target=test_ary[x][y];(x2、data_type (*p_test_ary)[j];
p_test_ary=test_ary;
target=*(*(p_test_ary+x)+y);(x
全部回答
- 1楼网友:廢物販賣機
- 2021-12-02 20:10
int arr[3][3] = {{0, 1, 2}, {3, 4, 5}, {6, 7, 8}};
int num = arr[0][2];
num 的值就等于 2
int num = arr[0][2];
num 的值就等于 2
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯