adplus-dvertising
frame-decoration

Question

Select the output for the following set of Code :
static void Main(string[] args)
 {
     int a = 5, b = 10;
     if (Convert.ToBoolean(Convert.ToInt32(++a)) || Convert.ToBoolean(Convert.ToInt32(++b)))
     {
         Console.WriteLine(a + "\n" + b);
     }
     else
     Console.WriteLine(" C# ");
 }

a.

6 11

b.

6 16

c.

6 12

d.

6 10

Posted under C# programming

Answer: (d).6 10

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Select the output for the following set of Code :