The Banks Challenge

by Doug Beeferman

Get your entry in for last month's Morse code problem and join the thousands who have already done so! Actually, there's only been one correct response so far. If you're still interested in working on this one, please see the newsgroup uiuc.acm for clarifications and a new sample input. Also, congratulations to David Hull, winner of the November Banks challenge.

This month's problem is a quickie, and was found somewhere on the Internet a year or so ago, though it's probably been around for ages: Write a program in standard ANSI C that prints its own source code when run. The single source file should match exactly with the output of the executable. You may only use standard header files, if any.

The spin is that the winner of this contest will be the one whose source is of smallest size, in characters. Ties will go to the earliest entry.

For bonus points, can you do any better in C++? Send questions and entries to dougb@uiuc.edu.