Some exercises in C