int modify(int &par[]) { par[1]=5; par[2]=6; par[3]=7; return 0; } int start() { int a[5]; Print ("BEFORE a[1]=",a[1]); modify(a); Print ("AFTER a[1]=",a[1]); return(0); }

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello,
I use a function in order to modify values in a array and i want ot return the modified array.
Example :
double userFunction(int A, double BufferValue[Size], double B)
{
double ModifiedBufferValue[Size];
//----
... modify array value...
//----
return(ModifiedBufferValue);
}
Is it possible ?
Note:
It's seems to me that structure can't be use. Can you confirm ?
Thanks for responses...