I'm in the process of learning C, and I'm currently on the pointer section: http://www.learn-c.org/en/Pointers
At one point in the guide it says:
And since arrays are actually pointers...
How are arrays actually pointers? I know if I create char array[20]
, array
is the memory address of the first element of the array, (does it "point" to that, or just hold the value), right? Is that what they mean?
As I understand it an array is just a sequence of memory addresses, and the subscript access [0]
, [1]
, etc. are just the values at those memory addresses. Am I totally off?