#include <stdio.h>
void func1()
{
int a=10;
printf("\nIn func1 the value of a is: %d",a);
}
void func2()
{
int a=12;
printf("\nIn func2 the value of a is: %d",a);
}
int main()
{
printf("In Func Main");
func1();
func2();
func1();
return 0;
}
Output:
In Func Main
In func1 the value of a is: 10
In func2 the value of a is: 12
In func1 the value of a is: 10