Path: utzoo!utgpu!water!watmath!clyde!rutgers!sri-spam!ames!sdcsvax!ucsdhub!jack!berick!jeffl From: jeffl@berick.UUCP (Jeff Lawhorn) Newsgroups: comp.lang.c Subject: interesting program Message-ID: <19@berick.UUCP> Date: 29 Jan 88 17:34:31 GMT Organization: The Gizmos Builders Union, Local 4151 Lines: 18 Posting-Front-End: GNU Emacs 18.41.6 of Sun Oct 4 1987 on berick (usg-unix-v) After watching all the flame wars here I decided that it was time to start one of my own ;) What does the following program print? (I know of at least one program that prints the wrong answer). main() { int k = 4; k = k++; printf("and the answer is %d\n", k); exit(0); } -- Everything should be made as simple Jeff Lawhorn as possible, but no simpler. jeffl@berick.uucp ...!sdcsvax!sdsu!berick!jeffl