Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Einführung in C

Wie erzeugt man ein Programm in C?

╭────────╮          ╭─────────────╮          ╭──────────╮
│ Code   │ ───────► │ Object-Code │ ───────► │ Programm │
│ *.c    │ Compiler │ *.o, *.obj  │  Linker  │ *.exe    │
╰────────╯          ╰─────────────╯          ╰──────────╯
  • Code: Quellcode
  • Object-Code: in Maschinensprache, nicht ausführbar
  • Linker: “Bindet” externe Funktionen (z.B.: printf()) ins Programm

“Hello World” Programm

#include <stdio.h>

int main() {
    printf("Hello World!\n");
    return 0;
}