Write the C++ statements and draw the memory pictures for the following:
- Declare two pointer variables p1 and p2 that can point to double
variables.
- Allocate an anonymous variable for a double and cause p1 to point
to it.
- Assign 10.5 to the location pointed to by p1.
- Make p2 point to the same location as p1.
- Print out the value in the location pointed to by p2.
- Deallocate the location pointed to by p1.