C

C the way I learned it in IC2, from scratch: what every line does, how it compiles and why C makes you think about the computer’s memory. If you come from Python, this is your bridge, with theory, commented programs and exercises in every topic.

37 articles

  1. Variables

    Types, printf, scanf and the & operator

    Exam-style quiz
  2. Conditionals

    if, else if, switch and logical operators

    Exam-style quiz
  3. Loops

    for, while, do…while, break and continue

    Exam-style quiz
  4. Pointers

    Addresses, * and &, and pointers with arrays

    Exam-style quiz
  5. Functions

    Prototypes, void and pass by value and by reference

    Exam-style quiz
  6. Dynamic memory

    malloc, calloc, realloc, free and memory leaks

    Exam-style quiz
  7. Structs

    struct, strings and string.h functions

    Exam-style quiz
  8. Preprocessor

    #include, #define, macros and #ifdef

    Exam-style quiz
  9. Processes

    fork, exec, wait and parent and child processes

    Exam-style quiz
  10. System calls

    open, read, write, lseek and file descriptors

    Exam-style quiz
  11. Threads

    Bus delays, a join I forgot and a counter that loses increments

    Exam-style quiz
  12. Flowcharts

    Diamonds, loops without a «for» and a week of steps

    Exam-style quiz

Exams and mock exams