Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
1718627440
1mo ago
0 comments
Save
Share
That's only true in C++ though, not in C.
0 comments
1 comments · 1 top-level
top
newest
oldest
dzaima
1mo ago
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)
j
/
k
navigate · click thread line to collapse