CS 3304: Comparative Languages
Data Types
[
Course Documents
] : [
Data Types
]
Previous
Contents
Next
Keyword Index
Stack-Dynamic Arrays
Range and storage are dynamic, but fixed from then on for the variable's lifetime
Examples: Ada locals in a procedure or block
Advantage:
Flexibility--size need not be known until the array is about to be used
Disadvantage:
Once created, array size is fixed for lifetime