//this is an example of an array of dynamic memory #include <iostream> using namespace std; void main() { typedef int* IntPtr; IntPtr intList; int listSize; cout << "How big is the list? "; cin >> listSize; intList = new int[listSize]; for (int i = 0; i < listSize; i++) { intList[i] = i; cout << intList[i] << ' ' << &intList[i] << endl; } cout << endl; delete [] intList; //ALLWAYS remember to match new statements with delete statements system("pause"); }