PinnedJosephfernandes·5d agoC Pointers Finally Made Sense When I Thought About HousesIf you’ve ever tried to learn C, you know the exact moment the learning curve turns into a brick wall. It’s the chapter on pointers.
PinnedJosephfernandes·6d ago3 Bitwise Tricks Every C Programmer Should Know (Modulo Isn’t the Enemy)Open a C header for a microcontroller, a graphics library, or a device driver, and you’ll often find a wall of &, |, ^, and <<, as if…
PinnedJosephfernandes·Nov 10The Compiler Is Not the Bug: Four Reasons Your C Works at -O0 and Breaks at -O2Your debug build passes and your release build misbehaves. Here is the assembly that shows what your code was quietly relying on.
PinnedJosephfernandes·Nov 9What volatile Actually Does in C (and Why Your Embedded Code Breaks Without It)This article was drafted with AI and edited by me.
PinnedJosephfernandes·Nov 7Why static Means Two Different Things in C: A Simple Guide to Scope, Linkage, and MemoryStop memorizing textbook definitions, here is how gcc, ld, and your OS actually handle your variables under the hood.A response icon1A response icon1
Josephfernandes·1d agoWhy Your C Struct Is Bigger Than You ThinkMemory padding, struct reordering, and the one keyword that removes padding (and what it costs you)
Josephfernandes·2d agomalloc() in C: How to Rent Memory That Outlives Your FunctionLocal variables vanish when a function returns. Here is how the heap lets your data survive, and what it costs you.
Josephfernandes·3d agoA Dangling Pointer Is an Address to a Demolished HouseWhy C happily lets you walk into a house that no longer exists, and how to stop doing it.
Josephfernandes·3d agoStack vs Heap in C: The Restaurant Analogy That Finally Makes It ClickTwo kinds of memory, two kinds of restaurants, and one rule that keeps cars on the road.
Josephfernandes·3d agoAn Array Is Not a Pointer, But arr[i] Is Still Just Pointer MathYou have probably written arr[0], arr[1] and arr[2] hundreds of times. It looks like a plain list, and it feels natural.