Arrays: Difference between revisions
Content added Content deleted
m (→{{header|I}}) |
|||
Line 2,852: | Line 2,852: | ||
=={{header|I}}== |
=={{header|I}}== |
||
<lang i>software { |
<lang i>software { |
||
//Dynamic arrays in 'i' aka Lists |
|||
var a = [] |
|||
d = [] |
|||
d += 2 |
|||
print( |
print(d[0]) //outputs 2 |
||
⚫ | |||
⚫ | |||
//Arrays in 'i' are just like lists except that the size of the array cannot change. |
|||
⚫ | |||
a = array(4) |
|||
⚫ | |||
a[1] = 7 |
|||
⚫ | |||
print(a[1]) //outputs 7 |
|||
} |
|||
⚫ | |||
=={{header|HolyC}}== |
=={{header|HolyC}}== |