http://c.biancheng.net/view/2022.html 1. 区分指针数组和数组指针 指针数组:存放指针的数组,如 int *pstr[5] = NULL; 数组中每个元素存放的是一个 int * 类型的指针 数组指针: 存放的是数组(数组名即为指针)如 int a[3][4] = {{0}}; int (*p) [4] =a; 括号中的*表明 p 是一个指针,它指向一个数组,数组的类型为int [4],这正是 a 所包含的每个一维数组的类型. C语言允许把一个二维数组
二维数组 还是一个数组,只不过数组中得每一个元素又是一个数组 1). 声明语法 类型 数组名[行][列]; 例: int nums[2][3];//2行3列的二维数组,保存的数据类型是int类型 char chs[3][5];//3行5列的二维数组,保存的数据类型是char类型 2). 初始化 A.在声明的时候初始化 a. int nums[3][5] = { {10,32,34,43,45}, {5,45,23,45,34}, {19,2,34,23,35}} b. int nums[2][
Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horizontally or vertically neighboring. The same letter cell may not be us