array.bmx 286 B

12345678910111213
  1. Rem
  2. The Array command creates a BlitzMax array, a container type containing a sequence
  3. of a specified primitive or custom &Type.
  4. End Rem
  5. Local a[]
  6. Local b#[]
  7. Local c[][]
  8. a=Array[20] 'an integer array with 20 elements
  9. b=Array#[10] 'a floating point array of 10 elements
  10. print len b