ExamVeda
Login
Home
Control Flow Statements in C Sharp
?

What will be the output of the following C# code?
static void Main(string[] args)
{  
    int a = 5;
    if (Convert.ToBoolean((.002f) -(0.1f)))
    Console.WriteLine("Sachin Tendulkar");
    else if (a == 5)
    Console.WriteLine("Rahul Dravid");
    else
    Console.WriteLine("Ms Dhoni");
    Console.ReadLine();
}

Answer & Solution
Correct Answer: Option B
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.