Computer Science, asked by miltonmayur, 11 months ago

Will a for loop execute without initialization? Explain with suitable ecamples.

Answers

Answered by MissTanya
1

\huge\underline\blue{Answer:-}

A 'for' loop can be written without initialization. A 'for' statement usually goes like: for (initialization; test-condition; update). We can leave out any or all three of them at a time. Therefore, for (;;) is a kind of infinite loop1 that is equivalent to 'while' (true) as there is no needed test condition.

Similar questions