exercise code when reading the C programming language