In a flight control program for an autonomous drone, a programmer has declared a variable named gyroOffset inside the subroutine adjustPitch.
Explain what is meant by a local variable in this context.
131 exam-style questions on AQA GCSE Computer Science Structured programming and subroutines (procedures and functions). Each one has a worked solution and a mark scheme showing where the marks go.