Q23
In C#, what is the syntax for a 'for-each' loop?
A.
for-each (type variable : collection) { }
B.
for (type variable : collection) { }
C.
foreach (type variable in collection) { }
AnswerD.
for-each (type variable in collection) { }
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board