title: Fixed-size arrays in a procedure - Pascal Zim
body: <p>I have a subject in school named something like "Informatic Aplications" (don't know the right word in english). I have an exercise that I was trying to resolve (studying for the test about procedures and functions). But I don't know how to declare an array in a procedure.</p>
  
  <p>The exercise is the next:</p>
  
  <blockquote>
    <p>Write a program in Pascal, which allows you to register distances travelled, in ten days of work. 
      1) Declare an array of ten elements (one dimension) to register the ditances travelled. 2) Create the procedure InsiraDist, to able the user to type the ten distances to the array.</p>
  </blockquote>
  
  <p>There are more steps, but if I learn how to open a fixed-size array in a procedure, I can do the rest.</p>
  
  <p>I translated the exercise from portuguese to english, so it may not be the best english you read.</p>
  
  <p>I don't know if it matters, but I've seen some explanations (never to a fixed-size array (we know that the array is going to be something like array [1..10] of real, in this case)) where they open an array in const or type. In classes we always opened an array in var. </p>