Blog121.6K views3,496 votes1 reply1 comment2,892 following
Writing Type‑Generic Macros in C with _Generic
Learn how C11’s _Generic keyword lets you write a single, type‑safe macro that expands to the correct abs‑family function for int, long, float, or double, with zero runtime cost.