from <c primer plus> exercises