| ▲ | 1718627440 2 hours ago | |
That's only true in C++ though, not in C. | ||
| ▲ | dzaima 2 hours ago | parent [-] | |
C does allow unconditional infinite loops (e.g. "while (1) { }" isn't UB) but still is UB if the controlling expression isn't constant (e.g. "while (two < 10) { }" is UB if two is less than 10) | ||