Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

What will be the output of the following C# code?
static void Main(string[] args)
{
Console.WriteLine(“HI”);
continue;
Console.WriteLine(“Hello”);
Console.ReadLine();
}

What will be the output of the following C# code?
static void Main(string[] args)
{
Console.WriteLine(“HI”);
continue;
Console.WriteLine(“Hello”);
Console.ReadLine();
}
a) Hi Hello
b) Hi
c) Hello
d) Compile time error

Answer: d
Explanation: Absence of any loop condition in order to make decision of break or continue.

Join The Discussion