int* arr[8]; // An array of int pointers.
int (*arr)[8]; // A pointer to an array of integers
The third one is same as the first.
The general rule is operator precedence. It can get even much more complex as function pointers come into the picture.
More Related Contents:
- C 3d array pointer decay with & and without &
- whats the difference between dynamic memory allocation and normal memory allocation?
- Value changing when I pass array into function
- Pointers program
- How to find the ‘sizeof’ (a pointer pointing to an array)?
- With arrays, why is it the case that a[5] == 5[a]?
- How come an array’s address is equal to its value in C?
- C: differences between char pointer and array [duplicate]
- What is the difference between char array and char pointer in C?
- Create a pointer to two-dimensional array
- What exactly is the array name in c?
- How to pass a 2D array by pointer in C?
- Should I use char** argv or char* argv[]?
- Array to pointer decay and passing multidimensional arrays to functions
- Returning Arrays/Pointers from a function
- why is array name a pointer to the first element of the array?
- Pointer vs array in C, non-trivial difference
- Passing two-dimensional array via pointer
- Getting the size of a malloc only with the returned pointer
- C – SizeOf Pointers
- Accesing a 2D array using a single pointer
- Why can´t we assign a new string to an char array, but to a pointer?
- C pointers and arrays/ ‘sizeof’ operator [duplicate]
- How to include a dynamic array INSIDE a struct in C?
- How to find the size of an array (from a pointer pointing to the first element array)?
- How can I return a character array from a function in C?
- “int *nums = {5, 2, 1, 4}” causes a segmentation fault
- C difference between *[] and **
- Difference between dereferencing pointer and accessing array elements
- Difference between pointer to pointer and pointer to array?