Quick Contact

✉
fahimkhan20148@gmail.com
📱
+971 507 286 133
Back to Notes
August 23, 2026
cmemorystorage-classes

Variable Lifetime

Lifetime of a variable specifies how long it is alive; some variables are only alive within a scope, and some stay alive for the entire duration of the program. And some are allocated and cleaned up for a specific duration.