In C, use "include" directive to include the content of other files (usually header files)
fiel1.h
int var1 = 3;
main.c
#include "fiel1.h" int main() { printf("variable var1: %d \n",var1); return 0; }