use global vars
#include <stdio.h> /* global definition of first and last */ int first = 10, last = 20; int main(void) { extern int first, last; printf("%d %d", first, last); return 0; }