Download MetaTrader 5

Can array be a parameter passed to a function? can function return value be an array?

To add comments, please log in or register
Make screenshots in MetaTrader and manage them in the gallery!
hongguang yin
358
hongguang yin 2014.03.20 06:23 
thanks
Ian Venner
2584
Ian Venner 2014.03.20 07:42  

Arrays can be passed to a function by reference.

Functions cannot return an array.

Changes made to arrays in the function when they passed by reference are real to the original arrays.

To add comments, please log in or register