When getting array as a parameter for a function, only one element is passed

Printable View