2nd try of code and png side by side
This commit is contained in:
@@ -29,7 +29,7 @@ Dynamic memory is:
|
|||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
```cpp
|
<pre>
|
||||||
int * p = new int;
|
int * p = new int;
|
||||||
*p = 17;
|
*p = 17;
|
||||||
cout << *p << endl;
|
cout << *p << endl;
|
||||||
@@ -44,7 +44,7 @@ p = temp;
|
|||||||
cout << *p << " " << *q << endl;
|
cout << *p << " " << *q << endl;
|
||||||
delete p;
|
delete p;
|
||||||
delete q;
|
delete q;
|
||||||
```
|
</pre>
|
||||||
</td>
|
</td>
|
||||||
<td><img src="heap.png" alt="heap"</td>
|
<td><img src="heap.png" alt="heap"</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user