// extern2.cpp // this is a declaration not a defintion // the definition is in another translation unit extern int y; int foo() { return 2*y; }