Homework on C