Ask Question
27 September, 17:19

Do you think there are some disadvantages to "For Loop"? Or when using it is not good for its program?

+4
Answers (1)
  1. 27 September, 20:21
    0
    I think there are no disadvantages of for loop as far as i know.

    Since for loop is entry controlled loop (i. e, the condition is checked for entering in the loop body). So when you want to execute the body first in the program for loops are not good fit for this type of conditions. You can use do while loop in these cases which is an exit controlled loop (body is executed first after the condition is checked).

    for example:-Iterating over and printing the circular linked list.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Do you think there are some disadvantages to "For Loop"? Or when using it is not good for its program? ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers