2 ms·
> That's any chunk of memory with a type, size, alignment and duration. Isn't that just "a variable"?
by Karellen 4y ago
> That's any chunk of memory with a type, size, alignment and duration.
Isn't that just "a variable"?
- gpderetta 4y agoint * int_ptr = malloc(sizeof(int)); int_ptr is a variable (and also an object), the pointed to memory is an object but not a variable.
- smcl 4y agoI think the point is that the C standard (or K&R, or both? I forget) repeatedly refers to "objects", and uses the word differently than we're used to in OOP