A
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();
}
}
{
static void Main(string[] args)
{
int i;
for ( i = 0; i < 5; i++)
{
}
Console. WriteLine(i);
Console. ReadLine();
}
}
- Correct Answer - Option(C)
- Views: 10
- Filed under category C# (C Sharp)
- Hashtags:
Discusssion
Login to discuss.