int arr[10]; //in file1.c
extern int *arr; //in file2.c
main()
{
arr[0]=1;
}
this code gave error saying undefined reference to arr, why???
extern int *arr; //in file2.c
main()
{
arr[0]=1;
}
this code gave error saying undefined reference to arr, why???
Comment