Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Pointer to an array of integers
Pointer to an array of integers
Int * pa[3]- An array of three elements, each of which refers to an int.

Pointer of type, and the array name is pa.

pa[ 1]= a[0]; pa[ 1]= a[ 1]; pa[2]= a[2];

Each pa element points to an int array (int*[]), which is better than the following.

Played the role of commenting on the code.

Int (* pa) [3]-pa is a poInter to an array containing three int elements.

Sue. So pa is a pointer to an int array, and each pa element is "two"

Level pointer (int**) ",not" two-dimensional pointer ",one-dimensional two-level truth.

needle

If I am interviewing you and you write (2), it means that you are a graduate. If you use a simpler (1), I think you already know how to use code comments. Congratulations, you are a finalist:-)