4 ms·
8. Currently the behaviour is undefined not unspecified. Undefined behaviour means anything can happen from that point on( bad ), while unspecified just gives
by readerrrr 12y ago
8. Currently the behaviour is undefined not unspecified.
Undefined behaviour means anything can happen from that point on( bad ), while unspecified just gives you an unspecified value.
3. Again unspecified vs. undefined.
1. From C11 Standard: The value of a pointer becomes indeterminate when
the object it points to (or just past) reaches the end of its lifetime. When you use that pointer you get undefined b.
- mark-r 12y agoUndefined behavior isn't limited to from that point on, it can have terribly surprising consequences. A great example at: http://blogs.msdn.com/b/oldnewthing/archive/2014/06/27/10537746.aspx http://blogs.msdn.com/b/oldnewthing/archive/2014/06/27/10537...
- readerrrr 12y agoYou misinterpreted my statement. From that point on means when you code it. I have read that article before; the usage of the word time travel is nonsense. Author could just as well say the code preceding the ub can get mangled and avoid confusion.
- BrandonM 12y ago> You misinterpreted my statement. From that point on means when you code it. That's a very aggressive way to phrase, "Sorry, I stated that unclearly."