GLOBAL VARIABLE:
int i=78;
void fun1()
{
printf("%d\n",i);
}
void fun2()
{
int i= 45;
printf("%d\n",i);
}
void main()
{
printf("%d\n",i);
fun1();
fun2();
}
OUTPUT:
78
78
45
No comments:
Post a Comment