Hello world in C

Here is the generic ``Hello world'' program in C:

#include <stdio.h>
int main (void) {
    printf ("hello world\n");
    return 0;

Note also the strange character sequence `\n' in the string constant "hello world\n". `\n' is called a newline character, and is regarded as a single character in C (i.e., it occupies one byte of storage). `\n' is known as an escape sequence, and the back-slash character is called the escape character.