Computer Science, asked by jacksundepkuranie, 1 month ago

Discuss in detail about For each loop.​

Answers

Answered by babuminz7069
1

Answer:

Foreach loop (or for each loop) is a control flow statement for traversing items in a collection. Foreach is usually used in place of a standard for loop statement. ... The foreach statement in some languages has some defined order, processing each item in the collection from the first to the last.

Answered by sjk17312
7

Foreach loop (or for each loop) is a control flow statement for traversing items in a collection. Foreach is usually used in place of a standard for loop statement. ... The foreach statement in some languages has some defined order, processing each item in the collection from the first to the last.

What is for each loop in C?

The for-each statement has a syntax that looks like this: for (element_declaration : array) statement; When this statement is encountered, the loop will iterate through each element in array, assigning the value of the current array element to the variable declared in element_declaration

hope it's help uh

Similar questions