Using new and delete 1. new e.g. new int new person (if you've already defined a struct person) Finds enough memory to store one (one int or one person) Returns a pointer to that memory. Example use: int * p = new int; person * q = new person; 2. new [] e.g. new int[100]; new person[N]; Finds enough memory for an array of s Returns a pointer to that memory. Example use: int * p = new int[100]; person * q = new person[N]; 3. delete e.g. delete p; Take back the memory that the pointer points to; recycle it so that it can be used again for something else. the pointer must have been created using the first form of new. 4. delete[] e.g. delete[] p; Take back the memory that the pointer points to; recycle it so that it can be used again for something else. the pointer must have been created using the second form of new.