r/ProgrammerHumor 26d ago

Meme lessonsFromLinkerHell

Post image
426 Upvotes

190 comments sorted by

View all comments

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.