R
rd
Hi i'm uncertain about foll. things. Thanks in advance for any help to
get me out of this..
if local,
Any Limit on heap size like stack?
if global,
what if u dont free()?
How heap is initialized and maintained?? (any reference/link for
heap/stack maintenace)
WORDSIZE:
OS?(will it be 4 bytes, if u run gcc now in older OSs like WIN95 (16
bit)..)
char *arr=malloc(50);
it is not guarenteed that memory for 'arr' will be contigous.. and
when you use
for(i=0;i<50;i++) {.. arr[i++]; ... }
how the indexing will be actually reflected in physical memory..? we
just increment like arr+25,arr+26,.. and what if memory is not
contigous?
Thanks
Deva
get me out of this..
if local,
Any Limit on heap size like stack?
if global,
what if u dont free()?
How heap is initialized and maintained?? (any reference/link for
heap/stack maintenace)
WORDSIZE:
OS?(will it be 4 bytes, if u run gcc now in older OSs like WIN95 (16
bit)..)
MALLOC:
char *arr=malloc(50);
it is not guarenteed that memory for 'arr' will be contigous.. and
when you use
for(i=0;i<50;i++) {.. arr[i++]; ... }
how the indexing will be actually reflected in physical memory..? we
just increment like arr+25,arr+26,.. and what if memory is not
contigous?
Thanks
Deva