4
What is the output of the following program?
struct S { public int X; }
var a = new S { X = 1 };
var b = a;
b.X = 5;
Console.WriteLine(a.X);Medium
What is the output of the following program?
struct S { public int X; }
var a = new S { X = 1 };
var b = a;
b.X = 5;
Console.WriteLine(a.X);Log in to join the discussion.