What will be the result of the following code execution?
 
static void Main() 
{
    if (false) 
    {
       int i = 1; 
    } 
    int i = 2; 
    Console.WriteLine(i);
 }
 
Explanation
Get an explanation when it's available:
C#
C# Quiz
Learn C# Online

or Read more about C# Quiz

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback