I have a problem....I am defining a static varialbe in the main c file as global. Now the same variable is defined as extern static in the another file.I use that variable to process some data.Now I check the variable value in the main file after returning from the exiternal file.
As far as i know this should give error while complie....BUT it gets compiled and even runs in a normal fashion as if the variable is a global variable.
here is my code
----------#include #include #include
static int i;
extern int i;
0 · ·