title: Array length in Pascal
body: <p>I don't know how does the array range really limit me, for example this program</p>
  
  <pre><code>program Test;
    var
      a:integer;
      c:array[1..5] of integer;
    begin
      for a:=0 to 8 do begin
        read(c[a]);
      end;
      for a:=0 to 8 do begin
        writeln(c[a]);
      end;
  end.
  </code></pre>
  
  <p>for input 1 2 3 4 5 6 7 8 9 writes 1 2 3 4 5 6 7 8 9 (all in a new row because of writeln) but array range should be from 1 to 5, how does it accept more values then? I also tried with Setlength(c,5) but same story</p>