Debian Codegraph @

help/figures/fig0643.cpp

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