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

Re: My First Computer



"Paul Schlyter" <pausch@saaf.se> wrote in message
news:b257si$18br$1@merope.saaf.se...
> but of course virtually any actual C programmer would prefer this:
>
> main()
> {
>     for(;;)
>         printf( "Hello\n" );
> }

Actually, I'd be more prone to write

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

I never use for(;;) for some reason.  Probably because I think it's a little
less intuitive and a little more ugly than while(1).

--
White Flame (aka David Holz)
http://www.white-flame.com/
(spamblock in effect)