hi i am programming AT89s52 in C.I am facing a problem in the program.i have declared array in union as shown below
union { unsigned int uiData[100]; }s;
The problem is i have to access this array in a separate file using extern how should i declare it i am trying to access it as shown
for (i=0;i<100;i++) { c=s.uiData[i]; }
but it not working like that anyone can know the solution.plz tell me or any suggestion
the compiler does not recognize it undefined Udata
i hve tried this
extern union unsigned char array name
but it doesnt work
and another question why cant we declare union in idata the compiler says it illegal operation