PureBytes Links
Trading Reference Links
|
Is it possible to pass an array to a function in Easy Language?
For example: Suppose I have a 5 element Array named MyArray with the
following values
MyArray[0] = 3;
MyArray[1] = 4;
MyArray[2] = 5;
MyArray[3] = 6;
MyArray[4] = 7;
and I want the average. Is it possible to pass the entire Array to a
function similar to VB or C/C++?
Such as the following call?
Avg = CalcAvg(MyArray[],5)
Where CalcAvg is a function which accepts the array MyArray and the
count value of 5 and then returns the average?
Thanks in advance for your help.
Andrew
|