2 ms·
Pascal has both. Static arrays in Pascal can have arbitrary indexes with mixed data types: http://docwiki.embarcadero.com/RADStudio/Sydney/en/Structured_Types_
by clouddrover 6y ago
Pascal has both. Static arrays in Pascal can have arbitrary indexes with mixed data types:
http://docwiki.embarcadero.com/RADStudio/Sydney/en/Structured_Types_(Delphi)#Arrays http://docwiki.embarcadero.com/RADStudio/Sydney/en/Structure...
Examples:
- var MyArray: array [1..100] of Char;
- packed array[Boolean, 1..10, TShoeSize] of Integer;
Dynamic arrays are indexed from zero.