I'm wondering whether I can put array as parameter for any functions, especially user-defined function.
Let's say
then in the code we put
i couldn't make it, but i don't know whether it is the problem of parameter input or it's that arrays can't be used as parameters in functions.
Thanks in advance
Let's say
Inserted Code
double xyz(double array1, double array2, int noofbars) { for (int i=1, i<noofbars; i++) { array1[i]=Time[i]; array2[i]=Volume[i]; }
Inserted Code
double abc[],def[]; xyz(abc, def, 10);
Thanks in advance