Home » C# Programming » Control Instructions

Which of the following loop correctly prints the elements of the array? char[ ] arr = new char[ ] {'k', 'i','C', 'i','t'} ;

Correct Answer: foreach (int i in arr) { Console.WriteLine((char) i); }

← Previous Question Next Question→

More Questions from Control Instructions

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion