#include<stdio.h>
f(int a)
{ auto int b=0 ;
static int c=3 ;
b=b+1;
c=c+1;
return (a+b+c);
}
main( )
{ int a=2,i;
for(i=0;i<3;i++)printf("%d ",f(a));
}
//7 8 9 Press any key to continue
#include<stdio.h>
fun( )
{ int a=2;
static int b=4;
a=a+2;
b+=2;
printf("a=%d b=%d\n",a,b);
}
main( )
{ fun( );
fun( );
fun( );
}
/*
a=4 b=6
a=4 b=8
a=4 b=10
Press any key to continue
*/