Hi,
I have a main.c file like this
the Headers.h file containsCode:#include "Headers.h" extern char *myArray; int main() { return 0; }
char myArray[200];
When I compile this is giving error like redefination; different types of indirection
But my doubt is we can use pointers instead of arrays
please clarify me whether we can use extern with pointer or not




Reply With Quote