Programming Fundamentals/Introduction/C

From Wikiversity
Jump to navigation Jump to search

hello.c[edit | edit source]

// This program displays "Hello world!"
//
// References:
//     https://en.wikipedia.org/wiki/%22Hello,_World!%22_program

#include <stdio.h>

int main()
{
    printf("Hello world!");
}

Try It[edit | edit source]

Copy and paste the code above into one of the following free online development environments or use your own C compiler / interpreter / IDE.

See Also[edit | edit source]