#include using namespace std; int main() { int *ptr; ptr = new int; cout << "\nptr after assigning it a block of memory but before" << endl << "assigning the block of memory a value" << endl; cout << "ptr = " << ptr << endl; cout << "*ptr = " << *ptr << endl; *ptr = 30; cout << "\nptr after assigning it a block of memory and after" << endl << "assigning the block of memory a value" << endl; cout << "ptr = " << ptr << endl; cout << "*ptr = " << *ptr << endl; }