Drellibus4740 Drellibus4740
  • 13-07-2019
  • Computers and Technology
contestada

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

Respuesta :

ExieFansler ExieFansler
  • 22-07-2019

Answer:

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.

Answer Link

Otras preguntas

What is 16 over 32 simplified
Which is NOT a factor that affects teenagers' ability to resist peer pressure and stand up for their own values? how high or low their self-esteem is the nature
What's the difference between college and university?
Please help me, I really would appreciate it. I am struggling with this.
If the volume of a cell increases when it is placed in a solution, that solution is said to be __________ to the cell.
How were many americans exposed to the ideas of the federalists?
List the four classes of organic macromolecules
What alternative to slavery do you think the colonists could have used to solve the labor shortage?
i cant figure out how the Answer Book got -/2 | 2 (negative root two over two) for one of the 6 answers. where did the bottom 2 come from?
Supreme court justices are appointed for life. a. True b. False description