Define static variable Also explain life time of static-01150

Online Quiz This subjective question is related to the book/course vu eco403 Macroeconomics. It can also be found in vu eco403 Mid Term Solved Past Paper No. 1.

Question 1: Define static variable. Also explain life time of static variable?
Answer:
When you declare a static variable (native data type or object) inside a function, it is created and initialized only once during the lifetime of the program.

Choose an organization

Theme Customizer

Gaussian Texture



Gradient Background