This is source code, excersise and answers from different source The source code and excersie is from K&R books, and I will assure the source code will compiled successfully by gcc 4.6. The answer is from http://web.archive.org/web/20130314194918/http://users.powernet.co.uk/eton/kandr2/krx1.html.