I have this this two codes:
private static int a = 5;
private static int b = a;
static void Main(string[] args)
{
Console.WriteLine(b);
}
And
private static int b = a;
private static int a = 5;
static void Main(string[] args)
{
Console.WriteLine(b);
}
Please explain to me why in the first case output is 5, but in the second one output is 0