Arrays: Difference between revisions
m
11 array elements is actually TWELVE elements, Applesoft and Commodore BASIC arrays are the same
m (11 array elements is actually TWELVE elements, Applesoft and Commodore BASIC arrays are the same) |
|||
Line 897:
=={{header|BASIC}}==
===={{header|Applesoft BASIC}}====▼
<lang basic>10 DIM A%(11): REM ARRAY OF ELEVEN INTEGER ELEMENTS▼
20 LET A%(1) = -1▼
30 LET A%(11) = 1▼
40 PRINT A%(1), A%(11)▼
{{works with|QuickBasic|4.5}}
Line 959 ⟶ 952:
PRINT staticArray(0), staticArray(10)</lang>
===={{header|Commodore BASIC}}====▼
===Dynamic===
Line 980 ⟶ 966:
dynamicArray(20) = 1
PRINT dynamicArray(0), dynamicArray(20)</lang>
▲30 LET A%(11) = 1
same as Applesoft BASIC
=={{header|BASIC256}}==
|