News for hackers. Stuff that matters.
Re:Weekend projects: getting silly with C by astrange on Monday July 01, 2024 @07:16PM (#40851860)
> The malloc function allocates space for an object whose size is specified by size and whose value is indeterminate.

> The lifetime of an allocated object extends from the allocation until the deallocation. Each such allocation shall yield a pointer to an object disjoint from any other object.

A static array is "an object" already. A pointer to the middle of it is not a new object.

There are no comments on this comment yet.