C
CoDE++
I want to create memory dynamically on heap but somehow want to keep
the pointers to the heap memory allocated in the contiguous stack
memory so as to traverse heap memory in an ordered fashion by
traversing stack memory and accessing the pointers stored there. Can
his be be done somehow? A small piece of code will be of a great help.
the pointers to the heap memory allocated in the contiguous stack
memory so as to traverse heap memory in an ordered fashion by
traversing stack memory and accessing the pointers stored there. Can
his be be done somehow? A small piece of code will be of a great help.