#include using namespace std; int* copyMe(int data) { int* copy = new int; *copy = data; return copy; } int main(int argc, char* argv[]) { int x; int* y; x = 5; y = copyMe(x); cout << "Address of x: " << &x << endl; cout << "Value of x: " << x << endl; cout << "Address pointed to by y: " << y << endl; cout << "Value at address pointed to by y: " << *y << endl; return 0; }