IGDTUW 2025 Computer PYQ — The lifetime (longevity) of the static variables in a 'C' program… | Mathem Solvex | Mathem Solvex
Tip:A–D to answerE for explanationV for videoS to reveal answer
IGDTUW 2025 — Computer PYQ
IGDTUW | Computer | 2025
The lifetime (longevity) of the static variables in a 'C' program is:
Choose the correct answer:
A.
till the end of the first function
B.
till the end of the main program
(Correct Answer)
C.
till the time first ten statements get executed
D.
within the function in which they are defined
Correct Answer:
till the end of the main program
Explanation
Solution
Static Variables: Inka lifetime poore program ke execution tak rehta hai. Yeh program shuru hone par bante hain aur program khatam hone (main program ke end) par hi destroy hote hain.
Correct Option: (b) till the end of the main program
Explanation
Solution
Static Variables: Inka lifetime poore program ke execution tak rehta hai. Yeh program shuru hone par bante hain aur program khatam hone (main program ke end) par hi destroy hote hain.
Correct Option: (b) till the end of the main program