Vidyalelo
C# Programming · Q64

Operators and Expressions in C Sharp

Programming · C# Programming · question 64

Q64

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);

A.
12, 5, 0
B.
11, 4, False
Answer
C.
11, 5, 0
D.
12, 4, False

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board