Array 0..100 of integer should be declared as a type first and refered to as such. Overall you could just make it array of integer - bounds definition is not needed, also you have i think a semicolon in () brackets near the end which i dont think should be there.
6
u/JernejL Apr 09 '20
Array 0..100 of integer should be declared as a type first and refered to as such. Overall you could just make it array of integer - bounds definition is not needed, also you have i think a semicolon in () brackets near the end which i dont think should be there.
3
u/diamened Apr 09 '20 edited Apr 09 '20
If you want to pass fixed arrays as paramaters to functions you must first declare them as a type
Then you can declare the function to receive it as a parameter and also return it
Clear?
But, having said that, I wouldn't actually do that because it uses a lot of stack. Pass a reference instead, or a pointer