Hello World in C
The clichéd starting point, in C.
Notes
Using printf from the standard libary, in the most basic definition of a main program:
#include <stdio.h>
int main() {
printf("Hello, world.\n");
}
Running the Example
See example.c for details. A makefile compiles and runs:
$ make
gcc -g -Wall -O3 hello.c -o hello
$ ./hello
Hello, world.
Credits and References
- printf
- C standard library - wikipedia
- C Language: Standard Library Functions - stdlib.h - techonthenet