HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by 1718627440 | Hacker News Reader
Parent
Full thread
1718627440
·
That's only true in C++ though, not in C.
View on HN
dzaima
·
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 a variable less than 10)
Reply on news.ycombinator.com