memory is allocated for static variable at compile time in c++.
memory is allocated for static variable at compile time in c++.
when is memory allocated for static variable in c++?
at compile time
Na
Na
bullet::::- because of return value variation with a mutable reference argument









































the following c++ functions are impure as they lack the above property 2:









































bullet::::- because of mutation of a local static variable









































bullet::::- because of mutation of a non-local variable









































bullet::::- because of mutation of a mutable reference argument









































bullet::::- because of mutation of an output stream









































the following c++ functions are impure as they lack both the above properties 1 and 2:









































bullet::::- because of return value variation with a local static variable and mutation of a local static variable
pure function