I basically have a couple C files and a couple header files. In one header file, I have the declaration of a struct... Following that is a declaration of a variable of that struct type
Example (myHeader.h):
My question is, how do I make it so that when a .c file "includes" myHeader.h, it shares the same data1 with any other C file that included it?Code:struct myStruct { int a; int b; char c; }; struct myStruct data1;