Automatic Variables is a type of variable. Its also called method local or stack variables. Its declaration within the body of a function is restricted to use inside that function. This is called its scope or visibility. Such a declaration with no static or external specifier defines an automatic variable. These are created when a function is called and are lost when it finishes its execution. Automatic variables are variables that are declared within a method and discarded when the method has completed .