I read this in my book (and many sources on the internet):
The array variable points to the first element in the array.
The array variable signifies the entire memory block the array occupies, not only the array's first element. So array
is not the same as array[0]
(cf. sizeof array / sizeof array[0]
). But the array's first element is located at the same memory address as the array itself.
Saying the array points to the first element is also incorrect, in most circumstances, an array expression decays into a pointer to its first element, but they are different things (again cf. sizeof
for example).