Does pascal work like this:

You need to perform the mass operation [4]: ​​= 54; :

  • Find the address of the beginning of the array
  • Add to this address 4 * (the size of one element of the array)
  • Write to the received address the value 54
  • Well, if, by analogy with C, then mass - this is the address of the beginning of the array, so you don’t need to look for anything special. And so everything is correct. - insolor
  • And in pascal indexes in an array with 0 (as in C) or with 1 (as in FORTRAN)? - avp
  • In Pascal, start from scratch - nikita_sergeevich
  • one
    How to write and start >_< type m1: array [0..15]; // from scratch m2: array [1..16]; // from unit - Sh4dow

1 answer 1

 mass[4]:=54; 

Taki that it does not work or what?

 var mass=array[0..10] of integer;