Array: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 5:
All values between (and including) the lower and the upper bound of the array may legally be accessed during the program run.
 
In most programming languages, arrays are accessed by using the array brackets '<code>['</code> and '<code>]'</code>, f.ex. in '<code>A[i]'</code>, but exceptions are [[Rexx]], instead using the dot operator '<code>.'</code>, such as in '<code>A.i'</code>, [[Ada]] which uses round parenteses '<code>A(i)'</code>, and of course in the [[LISP|lisps]] which uses constructions like '<code>(ELT A n)'</code> for accessing and '<code>(SETA A n new_val)'</code> for setting (Interlisp) or '<code>(vector-ref A n)'</code> for accessing and '<code>(vector-set! A n new_val)'</code> for setting (Scheme).
 
==Examples==
Anonymous user