# Is an array in Gamemaker infinitely expandable?

Arrays in Gamemaker Studio seems to not need to have its size be declared, and infact it doesn't seem to be possible to declare a finite array.

Instead, it seems it just keeps indexing for each declaration....at least as far as I can tell. Obviously, this is limited by memory, I would presume.

Question: So, can I have a loop that says something like array[i] = 0, while increasing i for each loop through?

• @SangoProductions There's also queues. They are called ds_stack and ds_queue inside GML, if you look for further reference. – DH. Jun 14 '16 at 22:18