When the following C++ code is run
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
I got the following output:
1 2 3 4 5 |
|
Which line in the output definitely refers to a location on the heap ?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
new oparetor provides memory from heap stored in computer, which is stored in pointer y.