Does malloc allocate a block of memory on the heap or should it be called Virtual Address Space?
Am I being picky calling it Virtual Address Space or this just the legac
Does malloc allocate a block of memory on the heap or should it be called virtual adress space?
short answer: malloc allocates memory on the heap.
it's not precise enough to say that malloc allocates memory in the virtual adress[sic] space, since your call stack itself is part of that same space.