There are 41 word(s) in the post.
It will take 1 minute(s) to read.
Prologue
This article demonstrates a Hello World program in C.
Example
/* Include the standard I/O library. */
#include <stdio.h>
/* Main function of C programs. */
int main(void)
{
/* Print out some text to stdandard out. */
printf("Hello World\n");
/* Return a program status. */
return 0;
}
Compilation
Here is a pseudo command to compile and run C code:
$ gcc -Wall -Wextra -o program source.c
$ ./program
Hello World
README
Hello World programs aim to try development environments for beginners. This post shows a C version of a Hello World program.