Ask Question
30 October, 19:59

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

+1
Answers (1)
  1. 30 October, 22:31
    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?
Get 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 & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers