Is while(1); undefined behavior in C?
It is well defined behavior. In C11 a new clause 6.8.5 ad 6 has been added An iteration statement whose controlling expression is not a constant expression,156) that performs no input/output operations, does not access volatile objects, and performs no synchronization or atomic operations in its body, controlling expression, or (in the case of a … Read more