Examveda

What is the purpose of the 'foreach' loop in C#?

A. Performs a conditional iteration

B. Terminates the loop

C. Iterates over elements in a collection

D. Executes a block of code repeatedly

Answer: Option C


Join The Discussion

Related Questions on Basic Syntax and Data Types in C Sharp