1.

What does the given code snippet specify?
 class MyClass { char chrs = 'A' ; public IEnumerator GetEnumerator() { for (int i = 20; i >=0; --i) yield return (char)((chrs + i)); } } class Program { static void Main(string[] args) { MyClass mc = new MyClass(); foreach (char ch in mc) Console.Write(ch + " "); Console.WriteLine(); Console.ReadLine(); } } 

A. A B C D E F G H I J K L M N O P Q R S T U V
B. Run time error
C. U T S R Q P O N M L K J I H G F E D C B A
D. Compile successfully prints nothing
Answer» D. Compile successfully prints nothing


Discussion

No Comment Found