Top "Unspecified-behavior" questions

Unpredictable, but valid, behavior of a program that an implementation is not required to document.

Undefined, unspecified and implementation-defined behavior

What is undefined behavior in C and C++? What about unspecified behavior and implementation-defined behavior? What is the difference between …

c++ c undefined-behavior unspecified-behavior implementation-defined-behavior
What are the common undefined/unspecified behavior for C that you run into?

An example of unspecified behavior in the C language is the order of evaluation of arguments to a function. It …

c language-lawyer undefined-behavior unspecified-behavior
Does this code from "The C++ Programming Language" 4th edition section 36.3.6 have well-defined behavior?

In Bjarne Stroustrup's The C++ Programming Language 4th edition section 36.3.6 STL-like Operations the following code is used as an example …

c++ c++11 language-lawyer operator-precedence unspecified-behavior
How to implement memmove in standard C without an intermediate copy?

From the man page on my system: void *memmove(void *dst, const void *src, size_t len); DESCRIPTION The memmove() …

c c99 undefined-behavior unspecified-behavior