ExamVeda
Login
Home
Operators and Expressions in C Sharp
?

What will be the output of the following C# code?
int n = 2;
int p = 4;
int q = 5;
int w = 3;
if ( !((p * q) /n <= (q * w) + n/p ))
{
    Console.WriteLine( ++p + w++ + " " + ++n);
    Console.WriteLine("b");
}
else
{
    Console.WriteLine(--p + q-- + " " + --n);
    Console.WriteLine("a");
}

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.