Reference


What is this section for?

In this section I’ll link to the code I’ve written for this particular chapter of the book. When finishing with a chapter your code should probably look similar to mine. This code can be used for reference if the explanation has been unclear.

If you encounter a bug please do not copy and paste my code into your project. Try to track down the bug yourself and use my code as a reference to highlight what may be wrong, or where the error may lie.

hello_world.c

  1. #include <stdio.h>
  2. int main(int argc, char** argv) {
  3. puts("Hello, world!");
  4. return 0;
  5. }