Why does my linked list node occupies 16 bytes and why does malloc_usable_size() returns 24 bytes?
Why does my linked list node occupies 16 bytes yet malloc reports 24 bytes? Summary A developer implemented a linked list node (struct Node) in C using manual memory allocation. While sizeof(struct Node) returned 16 bytes, malloc_usable_size() reported 24 bytes for an allocated node. Additionally, observed memory addresses between consecutive nodes differed by 32 bytes. … Read more