CSharp - What is the output: struct constructor and every field initializer?

Question

What is the output from the following code

using System;
struct Point
{
       int x;                          
       int y;
       public Point (int x) {
          this.x = x;
       }  
}
class MainClass{
   public static void Main(string[] args){
        Point p1 = new Point ();      
        Point p2 = new Point (1, 1); 
        
        Console.WriteLine(p1.x);
        Console.WriteLine(p2.x);
   }
}


Click to view the answer

// Illegal: must assign field y

Note

When you define a struct constructor, you must explicitly assign every field.