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
When we pass parameters into a user-defined function, we change the name of the variables being passed, but the values that the variable holds are obviously retained in the function. Why do we change the name of the variables when inside the UDF? This is something that has been confusing me for a while because I can't seem to find a reason for this.
For example, why can't we just pass them in as below:
Why does the variable need to be renamed and declared separately when passed to the UDF rather than just not doing this is effectively my question.
Thanks in advance.