What will be the output of this command?
string s="yes";
while (s=="yes")
{
for(int i=1;i<=5;i++)
{
Console.WriteLine("hello");
}
}

 Posted by Ddd on 3/15/2011 | Category: C# Interview questions | Views: 5941 | Points: 40
Select from following answers:
  1. hello will be displayed 5 times.
  2. No result
  3. Indefinite loop
  4. None of these
  5. All Above

Show Correct Answer


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response