AQA GCSE Computer Science · 8525
Paper 1
Revise: Using Local VariablesIf another subroutine also uses that same global variable as a temporary counter, it could overwrite the order total. This is an unwanted side effect: running one task has unexpectedly changed data needed by another.