int array[] = {1, 2, 3, 4, 5, 6, 7, 8, 9}; // delete 3 (index 2) for (int i = 2; i < 8; ++i) array[i] = array[i + 1]; // copy next element left