Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in undefined-behavior

In which versions of the C++ standard does "(i+=10)+=10" have undefined behaviour?

What's the reason for letting the semantics of a=a++ be undefined?

Arithmetic right shift gives bogus result?

Why doesn't vector::clear remove elements from a vector?

Why isn't arr[-2] equivalent to -2[arr]?

Difference in the end of lifetime rules?

Do I need to cast to unsigned char before calling toupper(), tolower(), et al.?

How to implement memmove in standard C without an intermediate copy?

Are functions calls in a constructor's initializer-list sequenced?

How undefined is undefined behavior?

Flexible array members can lead to undefined behavior?

May I treat a 2D array as a contiguous 1D array?

Is it defined behavior to reference an early member from a later member expression during aggregate initialization?

Is right shift undefined behavior if the count is larger than the width of the type?

Is this undefined C behaviour?

c undefined-behavior

How does pointer comparison work in C? Is it ok to compare pointers that don't point to the same array?

Why is it undefined behavior to delete[] an array of derived objects via a base pointer?

Incorrect cast - is it the cast or the use which is undefined behavior

When is casting between pointer types not undefined behavior in C?

A question about union in C - store as one type and read as another - is it implementation defined?