On the heap

When the following C++ code is run

  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 #include using namespace std; int main() { int x; int *y = new int; std::cout << x << std::endl; std::cout << &x << std::endl; std::cout << y << std::endl; std::cout << &y << std::endl; std::cout << *y << std::endl; return 0; } 

I got the following output:

 1 2 3 4 5 -1076683684 0xbfd31b98 0x8a5ea10 0xbfd31b9c 0 

Which line in the input definitely refers to a location on the heap?

×