int staticVar = 0; // a static variable main() { staticVar += 1; // sleep causes the program to wait for x seconds sleep(10); printf ("Address: %x; Value: %d\n", &staticVar, staticVar); } Produces: Address: 5328; Value: 1