Question: Which are true statements comparing for-each and traditional for loops? (Choose two.) A. Both can iterate through an array starting with the first element. B.
Which are true statements comparing for-each and traditional for loops? (Choose two.)
A. Both can iterate through an array starting with the first element.
B. Only the for-each loop can iterate through an array starting with the first element.
C. Only the traditional for loop can iterate through an array starting with the first element.
D. Both can iterate through an array starting from the end. E. Only the for-each loop can iterate through an array starting from the end.
F. Only the traditional for loop can iterate through an array starting from the end.
Step by Step Solution
3.42 Rating (165 Votes )
There are 3 Steps involved in it
The correct statements comparing foreach and traditional for loops are A Both can iterate through an ... View full answer
Get step-by-step solutions from verified subject matter experts
