/*
CS371p: Quiz #7 (5 pts)
*/
/* -----------------------------------------------------------------------
1. What is the output of the following program?
(4 pts)
4 0
7 8
*/
#include <iostream> // cout, endl
using namespace std;
int f () {
int i = 2;
static int j = 3;
++i;
++j;
return i + j;}
int main () {
int i = 2;
int* p = &i;
int** pp = &p;
int**& qq = pp;
int* r = &++**qq;
++*r;
cout << i << " ";
qq = 0;
cout << pp << endl;
cout << f() << " ";
cout << f() << endl;
return 0;}
syntax highlighted by Code2HTML, v. 0.9.1