The file1.c defines an array 'myarray' as,
int myarray[10];
The file2.c uses 'myarray' as,
extern int *myarray;
void foo()
{
myarray[0] = 10;
}
What kind of problem this program may have?
Thanks !
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Results 1 to 6 of 6
Thread: what's wrong with this programThreaded View
|
Click Here to Expand Forum to Full Width |