Local+Variables

A Local Variable is a variable that is given a local scope. Such a variable is accessible only from the function or block in which it is declared.

The local variable can only be used within the function it is defined in, when the function is finished and control is returned back to the part of the program that called it, the local variables no longer exist. Which is different to global variables.