What will be the output of the following Main program in a C# console application (Assume required namespaces are included):
static void Main(string[] args)
{
for (int i = 0; i < 1; i++)
{
Console.WriteLine("No Error");
}
int A = i;
Console.ReadLine();
}
Correct Answer: This program will throw a compilation error, "The name 'i' does not exist in the current context".
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More C# MCQ Questions