Ask Question

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

+1
Answers (1)
  1. 25 January, 00:53
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers