Ask Question
16 April, 07:28

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. 16 April, 10:33
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers