
Passing array by reference in RobotC 1.05
Hi,
Is it possible to pass an array by reference in RobotC 1.05?
I'm attempting to pass an array of ints into a function to initialise the array. At a later point I will have another function to update the array with sensor readings.
The following code refuses to compile, with an error on the line where I dereference the pToArray argument: **Error**:Array specifier invalid for variable 'pToArray'
I have also tried using
and just plain old
to declare the function. None of these options will compile.
This code would be called as:
Is it possible to pass arrays by reference, and if so what is the correct syntax for doing so?
Many thanks,
Mark