30 years in C/C++ here.
Give an example of UB code that you have committed in real life, not from blogs. I am genuinely curious.
> Give an example of UB code that you have committed in real life
struct foo { ... atomic_int v; ... }; struct foo x; memset(&x, 0, sizeof(x));
> Give an example of UB code that you have committed in real life