CSharp - What is the output: Instances of structures can be created without a new keyword?

Question

What is the output of the following code?

using System;

struct MyStructure
{
    public int i;
    public MyStructure(int i)
    {
        this.i = i;
    }
}
class Program
{
    static void Main(string[] args)
    {
        MyStructure myS3;
        myS3.i = 100;
        Console.WriteLine(" myS3.i={0}", myS3.i);

    }
}


Click to view the answer

100

Note

You can create a structure without using new.