Why C# compiler does not allow you to compile this:
int a;
Console.WriteLine(a);
but does allow you to compile:
MyStruct a;
Console.WriteLine(a);
where MyStruct is defined as:
struct MyStruct
{
}
Update: in the firsts case the error is:
Error 1 Use of unassigned local variable 'a'