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 <[email protected]> wrote: > 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 discussion on the web visit > https://groups.google.com/d/msg/algogeeks/-/5Wj2C8yF74QJ. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
