Well, since you declared the array as a global variable, you don't need to pass it, as global variables will be available to all functions. But that's generally considered a poor approach as there is no control over which functions are permitted to either read or modify the values.
I'm not sure whether you need the function to handle the entire array, or just a single value. If you want the function to receive an individual value, just pass an ordinary integer.