const in C — Where to Put It and What It Actually Protects
Learn where to place const in C declarations, the difference between const pointer and pointer to const, and how const correctness prevents bugs at compile time.
Read articleArchive
Learn where to place const in C declarations, the difference between const pointer and pointer to const, and how const correctness prevents bugs at compile time.
Read articleLearn when recursion causes stack overflow in C, how to calculate stack depth limits, tail recursion, and when iteration is a better choice.
Read articleLearn how to measure elapsed time in C using clock(), time(), clock_gettime(), and how to benchmark your code correctly across different platforms.
Read articleLearn how argc and argv work in C, how to parse flags and values, common pitfalls with string conversion, and how to validate arguments correctly.
Read articleLearn when to use volatile in C for memory-mapped hardware, signal handlers, and setjmp. Understand what volatile does and does not guarantee.
Read articleLearn how C unions store multiple types in the same memory. Understand type punning, tagged unions, and the safe way to read from a union you wrote to differently.
Read article