Dynamic array in C — Is my understanding of malloc and realloc correct? Dynamic array in C — Is my understanding of malloc and realloc correct? arrays arrays