What will be the result of the following code execution?
 
using System; 

class MainClass
{ 
     static void Main() 
     { 
           int? i = null; 
           Console.WriteLine(i ?? Convert.ToInt32(i.HasValue)); 
     } 
}
 

Follow CodeGalaxy

Mobile Beta

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