Memory and C++

swap(array[lh], array[rh]); } } n 10 lh rh array Pointer Arithmetic • Like C before it, C++ defines the + and -operators so that they work with pointers. • Suppose, for example, that you have made the following declarations: double array[5]; double *dp = array; How do those variables appear in memory? dp array ................
................