you will find compiler will give an error that "x is undefined", what is the problem?
if I change the "extern" into "static", program can be compiled, while when I input 6 for x, the main() will ouput x=6 and display() will output x=0; what is the problem?
how could I use a single variable in multi files, and they are using really the same one. Thanks.