#include <stdio.h>
int a = 12, b = 56, c = 73, d = 33; /*Declaration of global variables which can used in any function within this programme*/
int add(int); /*declaration of user defined function*/
int main()
{
int n;
n= add(150);
printf("The global variables defined in this programme can be accessed here %d %d %d %d\n", a, b, c, d);
printf("The local variable declared within add function can be accessed here %d \n",n);
}
int add(int zxy)
{
printf("The local variable declared within add function can be accessed here %d \n", zxy);
printf("The global variable declared can be accessed here also %d %d %d %d\n", a, b, c, d);
}