Debian Codegraph @

help/figures/fig0641.cpp

raw symbols SCIP
1 // File: fig0641.cpp
2 // Computer Systems, Fourth Edition
3 // Figure 6.41
4
5 #include <iostream>
6 using namespace std;
7
8 int *a, *b, *c;
9
10 int main () {
11 a = new int;
12 *a = 5;
13 b = new int;
14 *b = 3;
15 c = a;
16 a = b;
17 *a = 2 + *c;
18 cout << "*a = " << *a << endl;
19 cout << "*b = " << *b << endl;
20 cout << "*c = " << *c << endl;
21 return 0;
22 }