
Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [tlug] C puzzle
- Date: Thu, 1 Aug 2002 20:26:23 -0400
- From: Viktor Pavlenko <vvp@example.com>
- Subject: Re: [tlug] C puzzle
- References: <20020726012006.M48242-100000@example.com><15680.11598.642676.889439@example.com><1027725222.13382.6.camel@example.com><m3d6t6xcn8.wl@example.com><15685.61809.707516.99320@example.com><3D45F5AD.7030707@example.com><1028034551.13418.130.camel@example.com><3D4693D2.1020208@example.com><15686.45289.914784.491660@example.com><20020730154745.GA2854@example.com><1028069808.12070.1.camel@example.com>
>>>>> "br" == bruno raoult <br@example.com> writes:
br> My solution is shorter. And it crashes too :-)
br> main;
We have had the same contest at a local C/C++ group, I thought you
might enjoy what we generated (programs posted at tlug are included
too). Of course, Bruno is the champion :)
main(){((void(*)())0)();}
main(){return 1/0;}
main(){*(int*)0=0;}
main(){int i=1/0;}
main(int*i){*i=0;}
main(){main();}
main(i){i/=0;}
main;
Viktor
Home |
Main Index |
Thread Index