One-dimensional arrays as function arguments