Consider the following code:
string s1 = "Old Value";
string s2 = s1;
s1 = "New Value";
Console.WriteLine(s2);
What will be the output printed, and why?
Correct Answer: "Old Value", because string is a reference type which is treated as a special case by the assignment operator.
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More C# MCQ Questions