Array.basic 453 B

1234567891011121314151617181920212223242526272829303132
  1. printLine(getAllocations())
  2. a = array(5)
  3. printLine(getAllocations())
  4. a[0] = 5
  5. a[1] = 20
  6. a[2] = 40
  7. a[3] = 60
  8. a[4] = 80
  9. for i = 0 to 4
  10. printLine(a[i])
  11. end
  12. b = array(7)
  13. printLine(getAllocations())
  14. c = array(7)
  15. printLine(getAllocations())
  16. for i = 0 to 40
  17. a = array(5)
  18. end
  19. printLine(getAllocations())
  20. d = array(5)
  21. printLine(getAllocations())
  22. d[0] = array(3)
  23. d[1] = array(4)
  24. d[2] = d
  25. printLine(getAllocations())
  26. d = 5
  27. printLine(getAllocations())