#include<stdio.h>
#include<conio.h> //Example for global declaration
#define a 10
main()
{
int b=20; //expample for local declaration
clrscr();
printf("The Global Variable value is: %d\n",a);
printf("The Local Variable value is: %d",b);
getch();
}
Out put is:
No comments:
Post a Comment