Variable size/Get: Difference between revisions

Variable size/Get en BASIC256
mNo edit summary
(Variable size/Get en BASIC256)
Line 147:
Note that when used with a string, <code>LEN</code> reports the length of the string, not its size in memory.
BASIC typically stores information about the string separately from the string itself, usually immediately before the string itself in memory (but some implementations may store such information elsewhere).
 
=={{header|BASIC256}}==
<code>TypeOf</code> returns a number representing the type of value that was passed:
 
<lang BASIC256>i = 1 #Integer
f = 1.0 #Float
s$ = "cad" #String
dim a(99) #Array
A = {1, 2, 3} #Anonymous array
m = {"key" -> 1} #Map
 
print typeof(i) # 1
print typeof(f) # 2
print typeof(s$) # 3
print typeof(A) # 4
print typeof(m) # 6</lang>
 
=={{header|BBC BASIC}}==
2,122

edits