How to Use GDB to Debug a Segfault in C
Learn how to use GDB to find segfaults, inspect variables, set breakpoints, and navigate the call stack. A practical guide for C programmers.
Read articleAuthor
Learn how to use GDB to find segfaults, inspect variables, set breakpoints, and navigate the call stack. A practical guide for C programmers.
Read articleInteger overflow in C behaves differently for signed and unsigned types. Learn what wraps, what is undefined, and how to detect overflow before it causes bugs.
Read articleThe static keyword in C has three distinct meanings depending on where it appears. Learn static variables, static functions, and static local variables with examples.
Read articleLearn 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 article