next up previous
Next: Variables and Arithmetic Expressions Up: intro_C_examples Previous: intro_C_examples

Getting Started

#include <stdio.h>

main()
{
  printf("hello, world\n");
}
$\bullet$
Concepts: Functions; main(); header files; printf(); string constants; escape sequences; compiling
$\bullet$
Most C header files are stored in /usr/include
$\bullet$
Some other escape sequences: \t (tab), \" (double quote), \\ (backslash)


Derek C. Richardson 2005-02-03