program; Type = identification name, alias: string; Minutes, seconds: integer; End; Arrays = array [2..50] of information; Var A: arrays; Start A [1] .name: = 'name'; End.
What's wrong with that? This gives me a limit check error and I do not know what it is.
This gives you an error because you are creating an array from index 2 to 50.
Then the first element that you can access will be 2.
Start A [2] .name: = 'name'; End.
A class check error means that you are trying to access an array in an invalid state (therefore, out of range). Pascal, unlike other languages, if you do this, then throws a compilation error.
Comments
Post a Comment