// CS210 F'03 Exam 1 // Question 12 // #include using namespace std; int checker(int&, int*, int); int main(void) { int hot(8); int diggity(10); int puppy(2); int & doggy = hot; int * kitty = &diggity; int return_value(-1); return_value += checker(doggy, kitty, puppy); cout << hot << endl; cout << diggity << endl; cout << puppy << endl; cout << return_value << endl; return 0; } int checker(int & a, int * b, int c) { int localInt; a++; *b = 13; localInt = (*b - a + c); return localInt; } // output // 9 // 13 // 2 // 5