Re: Staic array de allocation



somenath wrote:

Hi ALL,

I have a doubt regarding declaration of static variable.
Suppose if we declare a char array as static then when the memory
reserved for the elements of the array will be de allocated .For
example when the memory reserved for "array[10]" will be de
allocated ?

All static objects persist until program termination. However their scope
can vary from block to file to program scope.

<snip>

.