Contact: aviboots(AT)netvision.net.il
40,904 questions
53,356 answers
573 users
file: test.h
extern int extern_n; // Declaration
file: test.c
#include "test.h" extern_n = 100;
file: example.c
#include <stdio.h> #include "test.h" int main(int argc, char **argv) { printf("%d", extern_n); return 0; } /* run: 100 */