Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Please explain the difference between int *ip[4] and int (*int) ip[4] in detail.
Please explain the difference between int *ip[4] and int (*int) ip[4] in detail.
According to the principle of from near to far and from right to left, brackets take precedence.

Int *ip[4] ip is combined with [] first, which means ip is an array, and then look at the previous int *, which means that this array is an array of int *, which means that this array stores pointers of type int.

Int (*ip)[4] Because there are parentheses, ip is combined with * first, indicating that ip is a pointer, and this pointer points to Int [], indicating that ip is a pointer to an int array.