passing array to function in c