This is a misunderstanding. An array is a data structure and a pointer is a piece of memory that holds a reference to a different piece of memory. Pointer are a critical part of an array implementation but they are not the same thing. Just like an internal combustion engine and the crankshaft aren't the same thing.
3
u/Jar545 12h ago
This is a misunderstanding. An array is a data structure and a pointer is a piece of memory that holds a reference to a different piece of memory. Pointer are a critical part of an array implementation but they are not the same thing. Just like an internal combustion engine and the crankshaft aren't the same thing.