What is the output of the following code?
class Test
{
static void Main() {
string myString = “1 2 3 4 5”
myString = Regex.Replace(myString, @"\s+", " ");
System.Console.WriteLine(myString);
}
Correct Answer: 1 2 3 4 5
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More C# MCQ Questions