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(0xB)))
      if (Convert.ToBoolean(Convert.ToInt32(022)))
      if (Convert.ToBoolean(Convert.ToInt32('\xeb')))
      Console.WriteLine("java");
      else ;
      else ;
      else ;
  }

a.

Compile time error: Misplaced else

b.

Compile time error: Undefined symbol

c.

java

d.

Warning: Condition is always true

Posted under C# programming

Answer: (c).java

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 :