Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Ask questions in c language
Ask questions in c language
Int a[3][2] is an element with three rows and two columns.

1 2

3 4

5 6

*p[3] is an array of pointers, and each element in the array is an integer pointer.

A[ 1] is a pointer to the first address in the second row of a two-dimensional array.

P[0]=a[ 1], so that P[0] also points to the first address of the second row of the array.

P[0]+ 1, the moving pointer p [0] moves by one unit, that is, it points to the second element in the second row.

*(p[0]+ 1) Take out the contents of the unit represented by p[0], that is, a[ 1][ 1].