zdj231: int GetPrices(int &m, int &a, int &b) This is a fucion of get price,buy i can't understand the "&" is mean,why add the symb
void ByValue(int x,int y){ x++; y++ Print("y="+x+" y="+y); // x=3 y=4 } void ByReference(int& x,int& y){ x++; y++ Print("y="+x+" y="+y); // x=3 y=4 } : int a=2, int b=3; Print("a="+a+" b="+b); // a=2 b=3 ByValue(a,b); Print("a="+a+" b="+b); // a=2 b=3 ByReference(a,b) Print("a="+a+" b="+b); // a=3 b=4
WHRoeder:
what's the cal principle
See also the documentation for Formal parameters regarding passing parameters by reference.

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
1.int GetPrices(int &m, int &a, int &b) This is a fucion of get price,buy i can't understand the "&" is mean,why add the symb
2. int start = FileOpenHistory(Symbol() + Period() + ".hst", FILE_BIN|FILE_READ);
int m=FileReadInteger(start);
Print(m);
why the up code output is 400,why