#include <stdio.h>

#include<stdio.h>
int main() 
{
   auto int a = -28;
   static int b = 8;
   printf("The value of auto variable : %d\n", a);
  
  printf("The value of static variable b : %d\n",b); 
  if(a!=0)
  printf("The sum of static variable and auto variable : %d\n",(b+a));
   return 0;
}

Output

Here is the output

The value of auto variable : -28
The value of static variable b : 8
The sum of static variable and auto

Post a Comment

0 Comments