Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] C puzzle



>>>>> "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

Home Page Mailing List Linux and Japan TLUG Members Links