everest% cc realloc.c everest% everest% a.out Enter numbers, 1 per line. End with ctrl-D ? 1 ? 2 ? ^D Contents of the array A: 1 2 everest% everest% a.out Enter numbers, 1 per line. End with ctrl-D ? 1 ? 2 ? 3 ? 4 ? 5 ? 6 DEBUG: reallocating A ... ? ^D Contents of the array A: 1 2 3 4 5 6 everest% a.out Enter numbers, 1 per line. End with ctrl-D ? 1 ? 2 ? 3 ? 4 ? 5 ? 6 DEBUG: reallocating A ... ? 7 ? 8 ? 9 ? 10 ? 11 DEBUG: reallocating A ... ? 12 ? 13 ? 14 ? 15 ? 16 ? 17 ? 18 ? 19 ? 20 ? 21 DEBUG: reallocating A ... ? 22 ? ^D Contents of the array A: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 everest%