2 ms·
> Arrays are not “real” data structures in C: there’s no such thing. I assure you, there are arrays in C. int a[100]; // `a` is an array, not a pointer
by WalterBright 6y ago
> Arrays are not “real” data structures in C: there’s no such thing.
I assure you, there are arrays in C.
int a[100]; // `a` is an array, not a pointer
int* p; // `p` is a pointer, not an array
a = p; // error, array is not a pointer
> The array-ish syntax that’s available is just a some syntactic sugar on top of pointers.
Sorry, this is incorrect. In some circumstances, C will implicitly convert an array to a pointer, which is what the article is about, but don't mistake a conversion with identity.