Jump to content

Arrays: Difference between revisions

333 bytes added ,  8 years ago
no edit summary
No edit summary
Line 2,964:
 
</lang>
 
 
 
=={{header|Liberty BASIC}}==
Line 2,999 ⟶ 3,001:
a.put 3 to 1;
a.item(1).print;</lang>
 
=={{header|Little}}==
Arrays in Little are list of values of the same type and they grow dynamically.
<lang C>String fruit[] = {"apple", "orange", "Pear"}</lang>
 
They are zero-indexed. You can use END to get the last element of an array:
<lang C>
puts(fruit[0]);
puts(fruit[1]);
puts(fruit[END]);
fruit[END+1] = "banana";</lang>
 
=={{header|Logo}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.