Allocation of memory is done at compile time - not during runtime. Hence the content of a variable can not dictate the size of an array since the content of a variable, by definition, can change during runtime while the size of the array is allocated at compile time.
You really can't resize arrays at runtime like what you're suggesting/expecting.
Can you elaborate on what problem is is you're trying to solve?
/Henrik.
Bookmarks