What does the yield return statement specify in above code snippet?
A. returns the output
B. returns the next object in the collection
C. Both a & b
D. None of the mentioned
Answer:A
What does the yield return statement specify in above code snippet?
A. returns the output B. returns the next object in the collection C. Both a & b D. None of the mentioned
Explanation: The yield return statement returns the next object in the collection, which in this case is the next character in chrs in above code.