Lecture 154
//Procedures and Functions
//Code:
#include <iostream>
#include <conio.h>
using namespace std;
void Auto();
void Auto1();// Prototype
main ()
{
Auto();
getch();
return 0;
}
void Auto()
{
auto int i,j;
cout
<<"\n i :
"<<i<<" j :
"<<j;
Auto1();
}
void Auto1()
{
auto int i=1;
{
cout
<<"\n i :
"<<i;
auto
int i=2;
{
cout
<<"\n i :
"<<i;
auto
int i=3;
{
cout <<"\n i :
"<<i;
}
}
}
}
Output: