C example program for hello world

teapot

This is an example C program which prints "Hello world!"

#include <stdio.h>

int main ()
{
    printf ("Hello world!\n");
    return 0;
}

(download)

The output of the example looks like this:

Hello world!


Copyright © Ben Bullock 2009-2023. All rights reserved. For comments, questions, and corrections, please email Ben Bullock (benkasminbullock@gmail.com) or use the discussion group at Google Groups. / Privacy / Disclaimer