In that case you better use a List type, as it grows dinamicaly when you add itens to it and you do not need to care with array dimensions.
However, if your intention is just to use an array of fixed dimension, you can do something like
but ensure that iAmount is a valid value...You probably do not want to dimension an array with 0 elements