Exercise and sample code when reading c primer plus (6th edition)