//file prog1.cpp static int foo(int i) { return (i * 3); } int goo(int i) { return (i * foo(i)); }
//file prog2.cpp #include <iostream.h> int foo(int i) { return (i * 5); } int goo(int i); // imported from file prog1.cpp int main() { cout << "foo(5) = " << foo(5) << endl; cout << "goo(5) = " << goo(5) << endl; }
extern
foo()
goo()
static
inline