This is what the manual says about defining arrays:



It is not clear if the Number of elements has to be a literal number or a variable can be used.

Can I do something like this?