ExamVeda
Login
Home
Operators and Expressions in C Sharp
?

What will be the output of the following C# code?
static void Main(string[] args)
{
    int a = 4, b = 5, c = 7, u = 9;
    int h;
    h = (Convert.ToInt32(u < b)) + (a + b--) + 2;
    Console.WriteLine(h);
    Console.WriteLine(b);
    Console.WriteLine(u < b);
}

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.