/* declare an array 4 units in length */ int array[4]; /* declare a pointer for the array */ int *array_ptr; /* set the array_ptr to the location of the first element in the array */ array_ptr = &array[0]; /* an alternate way of assigning array_ptr to the first element of the array */ array_ptr = array; /* assign some values to the elements in the declared array */ array[0] = 0; array[1] = 1; array[2] = 2; array[3] = 3; /* reassign array[0] the value 12 */ *array_ptr = 12; /* reassign array[1] the value 13 */ *(array_ptr + 1) = 13; /* reassing array[3] the value 14 */ *(array_ptr + 3) = 14;