How to Compile C Code with GCC — Flags, Standards, and Options
Learn how to compile C programs with GCC. Essential flags, language standards, optimisation levels, and debugging options explained.
Read articleCategory
Learn 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 articleUnderstanding the stack and heap in C is fundamental. Learn where each type of variable lives, how memory is managed, and when to choose each.
Read articlesizeof in C has surprising edge cases with arrays, structs, pointers, and function parameters. Learn them all before they catch you out.
Read articleLearn how to read files in C using fopen, fgets, fread, and fscanf. Real code examples showing when to use each function.
Read article