Passing dynamic arrays to a function

 

The function will parse arrays in a certain way, but they are dynamic and can be of different size all the time.

Please let me know if function declaration will work as follows:

double myFunction (double dataPoints[]);

Thank you!

 
double myFunction (double & dataPoints[]);
Reason: