home *** CD-ROM | disk | FTP | other *** search
- From decwrl!purdue!mailrus!tut.cis.ohio-state.edu!cwjcc!hal!ncoast!allbery Sat Oct 1 18:36:11 PDT 1988
- Article 652 of comp.sources.misc:
- Path: granite!decwrl!purdue!mailrus!tut.cis.ohio-state.edu!cwjcc!hal!ncoast!allbery
- From: tromp@cwi.nl.UUCP (John Tromp)
- Newsgroups: comp.sources.misc
- Subject: v04i110: An amazingly small C-program
- Message-ID: <7656@boring.cwi.nl>
- Date: 30 Sep 88 23:32:22 GMT
- Sender: allbery@ncoast.UUCP
- Reply-To: tromp@cwi.nl.UUCP (John Tromp)
- Organization: CWI, Amsterdam
- Lines: 16
- Approved: allbery@ncoast.UUCP
-
- Posting-number: Volume 4, Issue 110
- Submitted-by: "John Tromp" <tromp@cwi.nl.UUCP>
- Archive-name: mazemaze
-
- [This one should have been entered in the Obfusticated C contest. ++bsa]
-
- Run this C-program and enter a number. Ain't that amazing ?
- John Tromp (tromp@piring.cwi.nl)
-
- char*M,A,Z,E=40,J[40],T[40];main(C){for(*J=A=scanf(M="%d",&C);
- -- E; J[ E] =T
- [E ]= E) printf("._"); for(;(A-=Z=!Z) || (printf("\n|"
- ) , A = 39 ,C --
- ) ; Z || printf (M ))M[Z]=Z[A-(E =A[J-Z])&&!C
- & A == T[ A]
- |6<<27<rand()||!C&!Z?J[T[E]=T[A]]=E,J[T[A]=A-Z]=A,"_.":" |"];}
-
-
-