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

Some one help me solve for x
VII Que font-ils? Write the professions of the following people. . ( 10 pts.) I changed the questions from images shown on the projector to descriptions Il aide
4x4+4x3-9x2-x+2 = x-1
Costrucciones con 'Se'
How would supporting children in developing a healthy gender identity and protect them from gender stereotyping to both boys and girls in the media and marketin
Spanish please help answer these two questions 1. ¿Hay farmacias abiertas las 24 horas al día en tu comunidad? 2. ¿Cómo son y qué productos venden?
The length of a rectangle is 2 m longer than its width. If the perimeter of the rectangle is 44 m, find its area.
HELP PLEASE!!!!!!!!!!!
Piedmont Company purchased merchandise on account from a supplier for $40000, terms 1/10, n/30. Piedmont Company returned $6000 of the merchandise and received
PLEASEEEEEE HELPPPPPP ASAPPPPPP