Global variables look like this:¶
If it's not Global it's local.
Local Variables are declared inside of functions and that's where they live:
1 2 3 4
A local variable can't be accessed in any way from any other function. It can't even be seen by any other function--other functions do not know it exists. This is referred to as the variable having local scope.
Local variables look like this:¶
- Lab02: Local and Global Variables