#include using namespace std; //Define a type, from now on, PtrArray is a synonym of "int *" typedef int * PtrInt; const int COL=3; //define a named constant //Display a 2D array (which uses contiguous memory), need to specify // column number as a constant void DisplayStatic2DArray (int a[][COL], int row_num); void DisplayArrayOfArrays (PtrInt a[], int row, int col); int main() { /* Demo static 2D array, which is stored in contiguous block of memory */ cout <<"*****************************************************\n"; cout <<"Illustrating a 2D array (stored in contigous block of memory) \n"; cout <<"*****************************************************\n"; int c[3][COL]={{1,2,3},{4,5,6},{7,8,9}}; //This will display the starting address of the block cout <<"c="<