Introduction to Programming

Hello World


Everything in yellow text is C code.
Type it exactly into your text editor (the command line won't understand C!).
Hover your mouse over a line of code to get an explanation. The text being explained will turn red.



#include <stdio.h>              

int main(int argc, char *argv[])
{                               
    printf("Hello, world!\n");  
    return 0;                   
}                               

Next: Variables and Expressions

Previous: Example Command Line Session


Introduction to Programming

Home