//in main.cpp they're declared: int a; int b; //in main.cpp they're initialized: a = 3; //in a function in file2.c they're accessed: