do
is a keyword in C and all I have seen is that it is only used with while
. So my question is can do
be used alone without while
.
If yes how?
To be more precise, this is what the C standard has to say:
6.8.5 Iteration statements
Syntax
iteration-statement:
while ( expression ) statement
do statement while ( expression ) ;
for ( expressionopt ; expressionopt ; expressionopt ) statement
for ( declaration expressionopt ; expressionopt ) statement
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With