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.
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.