by randomNumber7 · 1y ago · 0 comments
If I would allocate 0 bytes of memory and get a pointer to it, I wouldn't care what the value of the pointer is since I am not allowed to dereference it anyways.
But then again, why would I allocate 0 bytes of memory?
Ex: a vector using only a counter and pointer - you can use realloc() with fewer pointer validity checks.