3 ms·
Pointers aren't arrays because sizeof works differently and pointer arithmetic on a pointer-to-array doesn't work "right". The more confusing part is the varie
by kevin_thibedeau 6y ago
Pointers aren't arrays because sizeof works differently and pointer arithmetic on a pointer-to-array doesn't work "right".
The more confusing part is the variety of ways pointers get used: allocated memory, opaque object handles, extra return values, modifiable input values, array indexing, function pointers, etc.