Functions in C: Call by Value vs Simulated Call by Reference and the Swap Question Family
See why a normal C swap changes only local copies, then trace the pointer version and the aliasing, increment, array, struct, and lifetime traps around it.
Updated 15 Jul 2026·5 min readC