#include
#include
int num = 100 ; // Global
void func(); // Prototype
void main()
{
int num = 20; // Local to main
{
int x = 30 ; // Local to Inner Part
printf("%d ",num);
func();
}
printf("%d ",num);
}
void func()
{
printf("%d ",num);
}
Output : 30 100 20
Bookmark & Share
