This query is regarding allocation of memory using malloc.
malloc
Generally what we say is malloc allocates memory from heap.
Now say I have a
The only real answer is "Wherever your compiler/library-implementation puts it".
In the embedded system I use, there is no heap, since we haven't written one.