dynamic array in c example