That doesn't look like K&R code to me. What version and page of the book is this from?
That doesn't look like K&R code to me. What version and page of the book is this from?
The cost of software maintenance increases with the square of the programmer's creativity. - Robert D. Bliss
I just remembered that they often declared multiple variables on the same line (which is not done here) and left out unnecessary braces (again, not done here).
It also seems kind of pointless to be printing this all out (all 212976 lines of output). I.e., what's the point of it all? Surely if it's from a book, any book, the book would say.
It's more likely it's a programming puzzle. What does it do?
Last edited by oogabooga; 08-10-2012 at 01:06 PM.
The cost of software maintenance increases with the square of the programmer's creativity. - Robert D. Bliss