Skip to content

Commit 19c990a

Browse files
committed
revise stack-heap.cpp
1 parent f61ab02 commit 19c990a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

week05/examples/stack-heap.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ int main()
1515
int * p2 = (int*) malloc (4);
1616
int * p3 = (int*) malloc (4);
1717

18+
cout << &p1 << endl;
19+
cout << &p2 << endl;
20+
cout << &p3 << endl;
21+
1822
cout << p1 << endl;
1923
cout << p2 << endl;
2024
cout << p3 << endl;

0 commit comments

Comments
 (0)