Mailing List Archive


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

Re: [tlug] C puzzle



bruno raoult wrote:
> 
> PS. BTW, what is this "smallest C program", which compiles with
> no options?

The canonical answer is:

main(){}


Proof:

: jmglov@example.com; cat /tmp/tiny.c
main(){}
: jmglov@example.com; gcc -o ./tiny /tmp/tiny.c
: jmglov@example.com; ./tiny
: jmglov@example.com;



-- 
Josh Glover <jmglov@example.com>

Associate Systems Administrator
INCOGEN, Inc.


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links