4 ms·
> But there is a difference between using C in crazy ways Is signed arithmetic using C in crazy ways? Is shifting by an arbitrary value without checking to mak
by pcwalton 10y ago
> But there is a difference between using C in crazy ways
Is signed arithmetic using C in crazy ways? Is shifting by an arbitrary value without checking to make sure that the number of bits is in the valid range of the type using C in crazy ways?
Undefined behavior is everywhere in C.
- deleted 10y ago[deleted]
- titzer 10y agoAnd all of those are inherited by C++. Thankfully C++ has a large assortment of additional footguns to help combat the previous footguns. It also has armored, self-detonating shoes.