variable and function scope Flashcards
1
Q
scope
A
area of code in a program a variable exists in
if a variable is in scope, it can be used, otherwise it cannot
2
Q
how can variables with the same name be declared?
A
if they contain different scopes
3
Q
variable names passed between functions
A
they can be different but are functionally the same