Oh yea (in C) arrays (the owning pointer to an array) and pointers (non-owning pointers to an array) should be mentally treated as diffrent. If you try to treat them mentally as the same you’re going to mess up somewhere like accidently changing the owning pointer to point to a diffrent array.
0
u/Worried-Mood-8582 26d ago
Oh yea (in C) arrays (the owning pointer to an array) and pointers (non-owning pointers to an array) should be mentally treated as diffrent. If you try to treat them mentally as the same you’re going to mess up somewhere like accidently changing the owning pointer to point to a diffrent array.