Search code examples
Why does the compiler optimize `g` to always return true, even though `i == INT_MAX` avoids undefine...


c++undefined-behavior

Read More
What should happen when printing an uninitialized variable?...


c++initializationundefined-behavior

Read More
c - Why does i = ++i invoke undefined behaviour?...


cincrementundefined-behavioroperator-precedencesequence-points

Read More
When is using an uninitialized variable undefined behavior?...


cundefined-behaviorinitialization

Read More
For Kotlin's ordered collections, does groupBy maintain a stable ordering in the resulting group...


kotlinundefined-behavior

Read More
Examples using reinterpret_cast that do not trigger UB...


c++undefined-behaviorreinterpret-caststrict-aliasing

Read More
What is the correct solution to work with bitmaps in terms of pointer arithmetic and conversion?...


c++pointersundefined-behavior

Read More
88. Merge Sorted Array...


c++arrayssortingmergeundefined-behavior

Read More
Ramifications of C++20 requiring two's complement...


c++undefined-behaviortwos-complementc++20

Read More
If there is [[noreturn]], then why there is no [[always_return]]?...


creturnlanguage-lawyerundefined-behavior

Read More
Is an Incremented Variable Reusable in a tie Call?...


c++incrementundefined-behaviorfunction-callstd-tie

Read More
Why are these constructs using pre and post-increment undefined behavior?...


cincrementundefined-behavioroperator-precedencesequence-points

Read More
Is left and right shifting negative integers defined behavior?...


c++undefined-behaviorbit-shift

Read More
In C++, is it valid to treat scalar members of a struct as if they comprised an array?...


c++pointersstructundefined-behaviorstrict-aliasing

Read More
Is it well defined to cast to an identical layout with const members?...


c++constantslanguage-lawyerundefined-behaviorstrict-aliasing

Read More
Possibility of uninitialized use of b in if (!a) { b = get_b(); } if (a || b) { ... }...


cgccinitializationundefined-behavior

Read More
Undefined behavior causing time travel...


c++undefined-behavior

Read More
Undefined, unspecified and implementation-defined behavior...


c++cundefined-behaviorunspecified-behaviorimplementation-defined-behavior

Read More
C++ Undefined behaviour in vector access...


c++undefined-behaviorstdlaunder

Read More
How will be operands inside (a += 3, 5, a) are going to dealt or caculated in order to print the val...


cundefined-behavior

Read More
Is unevaluated division by 0 undefined behavior?...


clanguage-lawyerundefined-behaviordivide-by-zero

Read More
Can code that will never be executed invoke undefined behavior?...


clanguage-lawyerundefined-behaviorunreachable-code

Read More
C programming language Undefined behavior...


cundefined-behavior

Read More
When does invoking a member function through a null pointer result in undefined behavior?...


c++undefined-behaviorlanguage-lawyerstandards-compliancenull-pointer

Read More
The behaviour of floating point division by zero...


c++floating-pointlanguage-lawyerundefined-behaviordivide-by-zero

Read More
Does having a vector containing structs with uninitialized members lead to undefined behavior...


c++vectorinitializationundefined-behavior

Read More
Assigning an int's own address to its value...


c++cundefined-behaviorobject-construction

Read More
Is a^a or a-a undefined behaviour if a is not initialized?...


cundefined-behavior

Read More
Is Insertion into a vector while also accessing a vector undefined behavior?...


c++stdundefined-behavior

Read More
Different output on GCC and on Visual Studio...


c++visual-studiogccexpressionundefined-behavior

Read More
BackNext