passing array to function in c example