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 the value of 3 in the number 3,543. Is it thousandths or 3000?
what is the full for of iq
52 = 1/2* (190 - 2x) 104 = 190 - 2x Solve for x. is it 86/2 =43
What is the value of the expression shown below? 7 + (10 − 4)2 ÷ 4 ×
100 POINTS TO RIGHT AWNSER!!!!!! What are the intercepts of this line? Coordinate plane with a line plotted that contains the points (–2, –3), (–1, –1), and (1
A notes organizer should be very specific and be in exactly the same format every time you take notes. true or false
triangle lmn has vertexes at L(-1,-6), M(1,-6), and N(1,1). Find the measure of angle N to the nearest degree.
Humans have adapted to live on which type of these landforms? Select all that apply. A.Plains B.Valleys C.Plateaus D.Mountains
If FH =21 , and GH =18, calculate the length of FG
What in Smith’s letter might offend non-Mormon Americans?