1. Which of the following statements is correct about the C#.NET code snippet given below? int d; d = Convert.ToInt32( !(30 < 20) );
Ask Your Doubts Here
Comments
By: guest on 01 Jun 2017 06.04 pm
Sample Program: bool falseFlag = false; bool trueFlag = true; Console.WriteLine("{0} converts to {1}.", falseFlag, Convert.ToInt32(falseFlag)); Console.WriteLine("{0} converts to {1}.", trueFlag, Convert.ToInt32(trueFlag)); The example displays the following output: False converts to 0. True converts to 1.