how to pass array to function in c