Contact Learn C
Copy

Program 242: Automatic Storage Class in C

Program 242:
 
#include<stdio.h>
void Hello();
main()
{
 int i=4;
 {
   int i=5;
  printf("Inside 1st bracket %d\n",i);
  {
    int i=6;
   printf("Inside 2nd bracket %d\n",i);
  }
 }
 Hello();
 printf("Inside main %d\n",i);
}

void Hello()
{
   int i=7;
  printf("In Hello Function %d\n",i);
}
 
Explanation:
The above is same with or without AUTO
//Coming Soon

Output:

Automatic Storage Class in C





Donate

Download App and Learn when ever you want

Get it on PlayStore
Get it on Amazon App Store
Get it on Aptoide