When instantiating an array, you can assign the number of elements in the array dynamically, using a
Fantastic news! We've Found the answer you've been seeking!
Question:
When instantiating an array, you can assign the number of elements in the array dynamically, using a variable (as opposed to using a constant). Discuss a situation where that would be useful. What do you think are advantages and disadvantages of arrays?
Related Book For
Introduction to Algorithms
ISBN: 978-0262033848
3rd edition
Authors: Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest
Posted Date: