Ask Question

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?

+3
Answers (1)
  1. 14 December, 14:52
    0
    False

    Explanation:

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

    Answer is False
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “A foreach statement can be used in place of the for statement whenever code looping through an array requires "access" to the counter. True ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers