C: What is the use of 'extern' in header files?
问题 Pardon me if this sounds a question that has been asked many times but I assure you this is a little different. I use Codeblocks for C programming and lately I have started to wonder why would someone use a header file in C. I understand it is used for declaring and/or defining variables structures. But here is something i tried and now I am confused. I have a header file named test1.h #ifndef TEST1_H_INCLUDED #define TEST1_H_INCLUDED static int testvar = 233; extern int one; extern void show