News for hackers. Stuff that matters.
Re:Show HN by WastingMyTime89 on Saturday December 03, 2022 @03:39PM (#33847087)
Yes, sizeof has a primitive as a weird behaviour when used in the scope of a continuous allocation. I agree it’s unfortunate.

But "arrays" definitely are pointers. I put "arrays" in quote because C has nothing I would personally call an array. It’s just contiguous memory allocation. It’s to the point that 10[a] and a[10] are desugared to the same thing.

There are no comments on this comment yet.