Tell the output of the below program

class Program
{
static void main()
{
bool x = true;

if(x = true)
{
if(x = true) break;
System.Console.WriteLine("Hello");
}
System.Console.WriteLine("Hi");
}
}

 Posted by Rajnilari2015 on 3/23/2016 | Category: C# Interview questions | Views: 1720 | Points: 40
Select from following answers:
  1. Compile error
  2. Hi
  3. HelloHi
  4. Compiler warning
  5. All Above

Show Correct Answer


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response