4 ms·
I do remember a time in my very early C career where I thought "pointers are arrays". But I'm not sure what caused me to think that. They are two very different
by globular-toast 6y ago
I do remember a time in my very early C career where I thought "pointers are arrays". But I'm not sure what caused me to think that. They are two very different things. A pointer is a memory address. An array is an area of contiguous memory containing a whole number multiple of some data type. Pointer arithmetic naturally supports arrays, but the pointer is not the array.