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:

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes