Try this
#include <stdlib.h>
#include <stdio.h>
static int name;
extern int *p=&name;
int main()
{
extern void strlength();
name = 20;
printf("add of p is %p and value odf p is %d\n",p,*p);
strlength();
getchar();
return 0;
}
</stdio.h></stdlib.h>
#include <stdlib.h>
#include <stdio.h>
void strlength(void)
{
extern int *p;
printf("value of name from 1.c is: %d\n",*p);
}
</stdio.h></stdlib.h>