How errno Works in C — Error Handling Without Exceptions
Learn how errno works in C, the difference between perror and strerror, when to save errno, and how to write functions that propagate errors correctly.
Read articleTutorials, tips and guides for C programmers — from beginner mistakes to advanced systems programming.
Learn how errno works in C, the difference between perror and strerror, when to save errno, and how to write functions that propagate errors correctly.
Read articleUndefined behavior in C is not just a crash. Learn what triggers UB, how the compiler exploits it for optimization, and how to write defensively.
Read articleArrays and pointers in C are related but not the same. Learn when they behave identically, when they differ, and the bugs that come from confusing them.
Read articleLearn how to compile C programs with GCC. Essential flags, language standards, optimisation levels, and debugging options explained.
Read articleLearn how C string functions work and where they fail. Buffer overflows in strcpy, misusing strcmp, and safer alternatives.
Read articleFunction pointers let you store and call functions dynamically in C. Learn the syntax, callbacks, dispatch tables, and common patterns.
Read articleLearn how the C preprocessor works. #define macros, #ifdef guards, #include, #pragma, and the common mistakes that cause subtle bugs.
Read articleBuild a singly linked list in C from scratch. Node creation, insertion, deletion, traversal, and memory management with complete working code.
Read articleLearn how bitwise operators work in C with practical examples. AND, OR, XOR, NOT, shift operators and real use cases like flags and packing.
Read articleLearn how structs work in C — how to declare them, use typedef, nest them, pass them to functions, and understand memory padding.
Read article