<P> In general , static memory allocation is the allocation of memory at compile time , before the associated program is executed , unlike dynamic memory allocation or automatic memory allocation where memory is allocated as required at run time . </P>
<P> In general , static memory allocation is the allocation of memory at compile time , before the associated program is executed , unlike dynamic memory allocation or automatic memory allocation where memory is allocated as required at run time . </P>
when is memory allocated for static variable in c++
when is memory allocated for static variable in c++
at compile time
at compile time