"Cor" <no*@non.com> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
Hi Ramana,
In bytes
Was this the question?
Cor how the data will be stored in Stack or Heap
Cor,
Are you sure you don't work for Microsoft? Your answer was technically
correct, but not very useful (as articles from MS often are).
In any case... Although I am not Ramana, I have a related thoughts so I
thought I'd drop it in this thread.
I suspect that the "stack" is the run-time stack used by the executing
processes. There would be only one run-time stack to keep track of all the
different threads and for use within a thread. Since it is a stack, items
are pushed onto it and popped off. Eventually everything in the stack will
be "used up." Please correct me if this is a wrong guess.
My guess is that the "heap" is another data structure that is also used and
managed by the executing processes. There seems to be a garbage collection
involved with this entity. That is, when data on the heap is no longer
referenced by anything, it is eligible to be deleted. Unlike the stack,
not everything put on the heap is "used up." Again, please correct me if I
am wrong.
If this turns out to be correct guessing, and is confirmed by a real
expert, like Cor, perhaps this also would answer Ramana's question.
Regards.