Variable size/Set: Difference between revisions

no edit summary
(Added Wren)
No edit summary
Line 52:
30 DIM C$(12): REM a character array of 12 bytes</lang>
 
==={{header|BBC BASIC}}===
{{works with|BBC BASIC for Windows}}
The only way to 'set' the size of a scalar numeric variable is to declare it with the appropriate type suffix:
Line 60:
var# = 1 : REM Variable occupies 64 bits</lang>
If the task is talking about setting the size of a variable ''at run time'' that is only possible with strings, arrays and structures.
 
==={{header|IS-BASIC}}===
<lang IS-BASIC>100 DIM A(10)
110 NUMERIC ARRAY(1 TO 100)
120 NUMERIC MATRIX(1 TO 10,1 TO 10)
130 NUMERIC NR,X
140 STRING NAME$(1 TO 100)*16
150 STRING LINE$*254</lang>
 
=={{header|C}}==
Anonymous user