int n == 0;
if (n == null)
{
Console.WriteLine(\"......\");
}
Is it true that the result of expression (n == null) is alw
In C# using an uninitialized variable is not allowed.
So
int i;
Console.Writeline(i);
Results in a compilation error.
You can initialize int with new such as:
int anInt = new int();
This will result in the Default value for int which is 0. In cases where you do wish to have a generic int one can make the int nullable with the syntax
int? nullableInt = null;