RosettaCodeData/Task/Arrays/Bc/arrays.bc
2023-07-01 13:44:08 -04:00

18 lines
269 B
Text

/* Put the value 42 into array g at index 3 */
g[3] = 42
/* Look at some other elements in g */
g[2]
0
g[4342]
0
/* Look at the elements of another array */
a[543]
0
/* Array names don't conflict with names of ordinary (scalar) identifiers */
g
0
g = 123
g
123
g[3]
42