Look into pointers , malloc, realloc , etc.