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

Re: My First Computer



"White Flame \(aka David Holz\)" <whiteflame52@y.a.h.o.o.com> writes:

> Actually, I'd be more prone to write
> 
> main()
> {
>     while(1)
>         printf( "Hello\n" );
> }

A really hardcore programmer might go one step further:

main()
{
  while (printf("Hello\n"));
}

as printf (should) return the number of characters printed, and the
string "Hello\n" is more than zero characters long. :-)

-- 
Anders Carlsson