fardinhaque5065 fardinhaque5065
  • 12-08-2019
  • Computers and Technology
contestada

A foreach statement can be used in place of the for statement whenever code looping through an array requires "access" to the counter. True or False?

Respuesta :

flightbath flightbath
  • 17-08-2019

Answer:

False

Explanation:

Foreach is useful when we want to do something for each element rather than repeating something for  n times

Answer is False

Answer Link

Otras preguntas

x = 21 and y = 6 solve for the proportionality.
Find the value of x.
Help please. I have the answer but I don't understand how to get there!
Let the two lines y=x+1 and y-x+2 are tangent to a circle at (2,3) and (4,2) respectively. Find the center, radius and equation of the circle
what is 13420, 17590 and 12860 rounded to 100
Jon and Austen got in trouble at football practice and have to run laps as a consequence. Jon, who runs at a rate of 3 laps per minute, had completed 10 laps al
10/7- 2 8/7 help pls
Two sled dogs are pulling on the same sled. The sled needs to travel due North. The first dog, Chuck, is pulling with 135 pounds of force at an angle 15 degrees
I'M stuck with the problem
Find the perimeter of the quadrilateral below. Give your answer in centimetres (cm) to 1 d.p. W 12 cm Z 5 cm Y 4 cm