Can a for statement loop indefinitely?
By igeetanjali
@igeetanjali (51)
India
2 responses
@alaaeldinalex (48)
• Egypt
8 May 07
the for loop is the same as while loop, all the difference that it encapsulates some statements in one statement.
//initialization
while(condition)
{
//update
}
for(//initialization;//condition;//update)
{}