Namespaces
Variants

Talk:c/language/while

From cppreference.com

loop_statement

This term appears once on this page, but it does not appear in the Syntax. Should "loop_statement" replace "statement" in the Syntax and in the body of this essay? This same issue occurs on the do-while page. I raise this question because the for-loop page uses "loop_statement" in the Syntax, and I am wondering whether consistent use of the term across all three pages would be valuable. Newatthis (talk) 04:53, 18 January 2015 (PST)

Undefined behavior

I only have access to the C89/C90 and C99 standards and I don't see anything about the fifth paragraph with regards to endless loops with no observable behavior. Is this inferred or explicitly stated? DeciusMagnus (talk) 15:06, 8 February 2023 (PST)

Looks like it was added in C11 (note the absence in C99), here's the observable behaviour definition (absent in C99) --Ybab321 (talk) 15:27, 8 February 2023 (PST)