Subject: Re: Answer to "which echo.c"
To: Peter Seebach <seebs@plethora.net>
From: Cliff Crawford <cjc26@cornell.edu>
List: current-users
Date: 12/09/1999 21:53:09
* Peter Seebach <seebs@plethora.net> menulis:
> In message <199912100221.SAA09865@shell17.ba.best.com>, Todd Whitesel writes:
> >Gross is right. Recursive calling of main() is discouraged by more recent
> >drafts of ANSI C, as it is not C++ friendly.
> 
> I don't recall that the *standard* discourages it.  Now, a lot of *books*
> discourage it.  Personally, I don't care about C++, but on the other hand,
> I don't see a lot of reason to call main().

It's great for making IOCCC entries.

main(n){6-n&&main(n+1),putchar(99+3*(19%n-n/4));}


-- 
cliff crawford   http://www.people.cornell.edu/pages/cjc26/
-><-                      "I am not an HTML tag!" --Manuel