int *mem;is the pointer to the contents of
- You should allocate enough memory to hold the contents e.g.
mem = new int[size];
- remember to delete mem at the destructor of Staticarray e.g.
- To access the ith element of a
arryou would use