An array needs not have a fixed number, you can use malloc and mfree for allocating any number at runtime.