All quizzes
C#CoreMultiple choice

A struct is assigned to a new variable and one field is changed. What is the result?

struct Point { public int X; }

var a = new Point { X = 1 };
var b = a;
b.X = 99;
Console.WriteLine(a.X);