求问一道c语言编程题,在二维数组中进行查找 输出下标答:{"A. int", "B. short", "C. long", "D. small"},{"A. int", "B. short", "C. long", "D. small"},{"A. 1", "B. 2", "C. -1", "D. 0"},{"A. main函数是C程序的入口", "B. 一个C程序可以包含多个函数", "C. C程序对大小写不敏感", "D. 数组一经定义...
C语言中,如何描述“遍历二维数组某一格周围格子”?答:int dir[8][2] = { -1, 0,1, 0,0, 1,0, -1,-1, -1,-1, 1,1, -1,1, 1};int x, y, i, next_x, next_y;/*然后设当前位置为第x行第y列,一共n行m列,行号列号从0开始到n-1和m-1*/ for (i = 0; i < 8; i ++){ next_x = x + dir[i][0];next_y...