A

Admin • 802.91K Points
Coach

Q. What will be the output of the following C# code?

Code:
class Program
{
static void Main(string[] args)
{
int i ;
for (i = 0; i < 5; i++)
{
Console.WriteLine(i);
}
Console.ReadLine();
}
}
  • (A) 0, 1, 2, 3, 4, 5
  • (B) 0, 1, 2, 3
  • (C) 0, 1, 2, 3, 4
  • (D) 0, 0, 0, 0, 0
  • Correct Answer - Option(C)
  • Views: 6
  • Filed under category C# (C Sharp)
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.