Re: [algogeeks] Static variable memory location

2011-09-02 Thread rahul sharma
function argument as stativ vairbales then tehy are creted on data segment and normal on stack. On Fri, Sep 2, 2011 at 11:27 AM, aditya kumar wrote: > static variables are allocated on heap . and global variables are sored on > data segment > > > On Fri, Sep 2, 2011 at 9:30 AM, rahul

Re: [algogeeks] Static variable memory location

2011-09-01 Thread aditya kumar
static variables are allocated on heap . and global variables are sored on data segment On Fri, Sep 2, 2011 at 9:30 AM, rahul sharma wrote: > static variable is stored in data segement so it is alive thorugh the > proggo through let us c : data types > > > On Wed, Aug 31, 2011 at 10:16 PM, Sw

Re: [algogeeks] Static variable memory location

2011-09-01 Thread rahul sharma
static variable is stored in data segement so it is alive thorugh the proggo through let us c : data types On Wed, Aug 31, 2011 at 10:16 PM, Swathi wrote: > C standard doens't fine where it has to be stored.. go through this URL > > http://www.velocityreviews.com/forums/t443436-where-is-a-st

Re: [algogeeks] Static variable memory location

2011-08-31 Thread Swathi
C standard doens't fine where it has to be stored.. go through this URL http://www.velocityreviews.com/forums/t443436-where-is-a-static-variable-stored.html On Wed, Aug 31, 2011 at 9:57 PM, rohit wrote: > Where does a static variable get allocated in memory..? > Like automatic variables get sta

[algogeeks] Static variable memory location

2011-08-31 Thread rohit
Where does a static variable get allocated in memory..? Like automatic variables get stack, objects allocated through malloc/calloc get memory from heap...wt abt static variable? -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To view this