C code excercises