Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Hello World - C (See related posts)

#include <stdio.h>

main()
{
  for(;;)
      { 
          printf ("Hello World!\n");
      }
}

Comments on this post

mattm posts on May 26, 2005 at 20:02
why the for loop?
darrell posts on Jan 26, 2007 at 19:53
The for loop is so the code never gets to the missing 'return 0;' statement.
int_80 posts on Dec 25, 2007 at 17:22
cunning

You need to create an account or log in to post comments to this site.


Click here to browse all 4861 code snippets

Related Posts