What is the value of variable "i" at the end of the function?
public static void Main(string[] args)
{
int i=0;
for(i=0;i<=9;i++)
{
//do some thing
}
Console.WriteLine("{0}",i);
Console.Read();

}

 Posted by Nagasundar_Tn on 11/9/2012 | Category: C# Interview questions | Views: 2811 | Points: 40
Select from following answers:
  1. 8
  2. 9
  3. 10
  4. 0
  5. All Above

Show Correct Answer


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response