2 ms·
Not at all. UB is unpredictable because you don't know what will happen just from the source text, for example when you write beyond array bounds. However, it
by mpweiher 8y ago
Not at all. UB is unpredictable because you don't know what will happen just from the source text, for example when you write beyond array bounds.
However, it can be perfectly predictable what code will be emitted: a store.