0

I've looked through tons of examples, but all the code I found was for defining an array of a set size such as

array1  resd 10

I want to write code that prompts user to enter numbers, into an array, until he wants to stop. Is there someway to allocate a dynamic array?

I also thought of storing the input somewhere and incrementing a counter. Then create an array once the user finishes inputs. But then, where would I store the inputs?

Edit: for 64-bit linux

Andrew Tsay
  • 1,893
  • 6
  • 23
  • 35

0 Answers0