C

My first steps in C during IC2: types, conditionals, loops, pointers and functions, compiling with gcc on Fedora. If you come from Python, here you’ll see why C makes you think about how the computer’s memory really works.

37 articles

  1. Variables

    Types, printf, scanf and the & operator

  2. Conditionals

    if, else if, switch and logical operators

  3. Loops

    for, while, do…while, break and continue

  4. Pointers

    Addresses, * and &, and pointers with arrays

  5. Functions

    Prototypes, void and pass by value and by reference

  6. Dynamic memory

    malloc, calloc, realloc, free and memory leaks

  7. Structs

    struct, strings and string.h functions

  8. Preprocessor

    #include, #define, macros and #ifdef

  9. Processes

    fork, exec, wait and parent and child processes

  10. System calls

    open, read, write, lseek and file descriptors

  11. Threads

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

  12. Flowcharts

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

More articles