Home »
MCQs »
C# MCQs
Which is the correct for() statement to run an infinite loop?
46. Which is the correct for() statement to run an infinite loop?
- for(;;)
- for(;;);
- for(;;)
- for(1;1;1)
Answer: A) for(;;)
Explanation:
The correct for statement/loop to run an infinite loop is:
for(;;)