AQA GCSE Computer Science · 8525
Paper 1
Revise: Local VariablesA variable’s lifetime is the period during execution for which it exists. Local variables usually exist only while their subroutine is executing.
Loading…
GCSE Computer Science · key term
The period during a program’s execution for which a variable exists.
Used by AQA
Paper 1
Revise: Local VariablesA variable’s lifetime is the period during execution for which it exists. Local variables usually exist only while their subroutine is executing.
Distinguish scope from lifetime: scope is where a variable can be accessed; lifetime is how long it exists.
Create a free account to keep every note you open and track your progress.