Basic exercises with arrays in C