#include #include #include "obj.h" using namespace std; void f(const obj *p); int main() { obj ob = 10; cout << "about to call f\n"; f(&ob); cout << "just returned from f\n"; return EXIT_SUCCESS; } void f(const obj *p) { cout << "start of f\n"; p->print(); //just to make sure that f received the obj cout << "\n"; cout << "end of f\n"; }