#172 Hello World in C
The clichéd starting point, in C.
Notes
Using printf from the standard library, 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. Use the makefile to compile and run:
$ make
gcc -Wall -O3 hello.c -o hello
$ ./hello
Hello, world.
$ make clean
rm -f hello *.o
rm -fR *.dSYM
Credits and References
- printf
- C standard library - wikipedia
- C Language: Standard Library Functions - stdlib.h - techonthenet