what if I want to pass an array by ref? An array is a pointer to its first element, and I want to pass the ‘whole array’ by ref. If I define
void someFunction(double& adouble){...}
then adouble is a ref to a double, not an array with doubles.
If I define
void anotherFunction(double* adouble){...}
then my argument is a pointer to a double or an array, but it is not passed by ref, right?
Thanks and regards
For a specific size:
For any size: