Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - About this program "output the element value of the first row of two-dimensional array with array pointer and integer variable pointer respectively"
About this program "output the element value of the first row of two-dimensional array with array pointer and integer variable pointer respectively"
printf("%d\t ",* q+j); //changed to *(q+j)

int(* p)[4]; //p is a pointer to an integer array with four elements.

int * p[4]; //p is an array with four elements, and each element is a pointer to an integer.

When to use it depends entirely on your needs. Generally speaking, int * p [4]; It is widely used to realize two-dimensional arrays.