Re: where is static variable stored ?

2008-09-17 Thread Sitsofe Wheeler
Sunil wrote: My query is, where is static variable stored ? in code section, in which case this should be available to other functions too. On stack ? How is it managed ? Is this a homework question? -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies"

Re: where is static variable stored ?

2008-09-17 Thread Bernd Petrovitsch
able in > this sense. But it is not exposed to other functions and they can ACK. > define local variable of the same name[or for that matter, there can ACK. > also be a global variable of the same name, in which case most > 'nearly defined' variable will be used].

Re: where is static variable stored ?

2008-09-17 Thread Sandeep K Sinha
variable in this > sense. But it is not exposed to other functions and they can define local > variable of the same name[or for that matter, there can also be a global > variable of the same name, in which case most 'nearly defined' variable will > be used]. > > My query i

where is static variable stored ?

2008-09-17 Thread Sunil
the same name[or for that matter, there can also be a global variable of the same name, in which case most 'nearly defined' variable will be used]. My query is, where is static variable stored ? in code section, in which case this should be available to other functions too. On stack ?