←PPNM
Lecture
  1. Make utility and makefiles;
  2. Structure of a C program;
  3. Compilation and linking;
  4. C basic data types: char, int, float, double, long double, complex;
  5. Mathematical operators +,-,*,/;
  6. Simple output with the printf function;
  7. C math functions, math library (remember -lm to link libm); type-generic math tgmath.h.
Reading
Exercises
  1. Do "exercise-math" (hint: examples/digits).
  2. Answer questions-2.
  3. Hints:
    • If you have GNU make version 3.82+ and you don't like your recipies to start with tabulator-sign, you can do .RECIPEPREFIX := ;.
    • For nano users: you can indicate the invisible tabulator-signs with a color by adding the following lines to your ~/.nanorc,
      syntax "makefile" "[Mm]akefile"
      color white,magenta "	"
      
      where the character in between the quotation marks in the second line should be the tabulator sign and where the colors are free for you to choose.