Since the first book on the C language [1], written several decades ago, a simple example program has been used to test the compiler/linker/execution process. The example contains a single statement to display the words Hello, World! on the computer screen. |
hello.c
1: #include <stdio.h> 2: 3: int main() 4: { 5: printf("Hello, world\n"); 6: return 0; 7: }
The console (or command) window below shows the compilation and execution of this example program. This example uses the Microsoft C/C++ Compiler.
Maintained by John Loomis, updated Mon Jul 28 19:54:54 2008