modified dynamic_arrays_c.c