I would like to pass the seats array to the void function but i have only learned how to pass constants to a function. How do you pass an array to a function?
This was my attempt but I have run into many errors. Can anyone help?
I see only two errors right of. In your prototype, use int[] as the type you are passing.And on line 23, simply pass seats. When you write seats[num_passengers] that is trying to get a particular element of the array, which also happens to be out of bounds.