code for array implementation in c