Sep 19, 2018

We have to specify upfront how many indices we want our array to have when we allocate an array in a low-level language like C or Java

There's a reason for this—the computer has to reserve space in memory for the array and commit to not letting anything else use that space. We can't have some other program overwriting the elements in our array!