Global and Local Variables
Global variables: The features are as pursue Declared outside of all functions or before main. These can be used in all the functions in the program. It require not be declared in other functions. A global variable is also called as an external variable.
Local variables: The features are as follows declared inside a function where it is to be used. These are not called to other function in the program.