MCQs > IT & Programming > C# > What does this program output? public class Program { struct Thing { public string Color { get; set; } } public static void Main(params string[] args) { Thing one = new Thing { Color = 'Red' }; Thing two = new Thing { Color = 'Green' }; two = one; two.Color = 'Blue'; Console.WriteLine(one.Color); } }

C# MCQs

What does this program output? public class Program { struct Thing { public string Color { get; set; } } public static void Main(params string[] args) { Thing one = new Thing { Color = "Red" }; Thing two = new Thing { Color = "Green" }; two = one; two.Color = "Blue"; Console.WriteLine(one.Color); } }

Answer

Correct Answer: Red

Explanation:

Note: This Question is unanswered, help us to find answer for this one

C# Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

C# Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it