See here[
^]
my guess is that new int() will generate a 0 and int a (without new) will generate some weird value like int max or int min values.
Create a console application and try to print it out.
class Program {
static void Main(string[] args) {
int a;
int b = new int();
Console.WriteLine("a = " + a);
Console.WriteLine("b = " + b);
Console.ReadLine();
}
}
Just tried it, doesn't even compile. a is uninitialized so you can't use it. You need to set a value before using a.