/* ILLUSTRATION OF WORKING OF AUTOMATIC VARIABLES
Automatic variables are declared inside a function in which they are utilised. They are created when the function is called and destroyed automatically when the function is exited, hence the name automatic */
main( )
{
int m= 1000;
function2( );
printf("%d\n", m);
}
function1( )
{
int m = 10;
printf("%d\n", m);
}
function2( )
{
int m= 100;
function1( );
printf("%d\n", m);
}
Output will be
10
100
1000