Click to See Complete Forum and Search --> : where are global,local variables and those declared STATIC stored


mohamed123
September 20th, 2004, 11:15 AM
hi
where are global,local variables and those declared STATIC stored ?
reg
mohamed

TheCPUWizard
September 20th, 2004, 12:12 PM
value entities are stored at fixed addresses [non-locals or local statics] or on the stack [locals]. Reference entities [i.e. instances of classes] are stored on the Heap/FreeStore.

Andreas Masur
September 20th, 2004, 01:37 PM
Although not dealing with C#, the following might help...

Memory Management - Part I (http://www.gotw.ca/gotw/009.htm)...