Vidyalelo
C# Programming · Q49

Operators and Expressions in C Sharp

Programming · C# Programming · question 49

Q49

What will be the output of the following C# code? static void Main(string[] args) int m = 10, n = 5, p = 20; bool b1 = m * p / n <= p * n / m ; int l = p - 2 * m; bool b2 = l == 0; int z = Convert.ToInt32(b2); int k = Convert.ToInt32(b1); Console.WriteLine(k); Console.WriteLine(z);

A.
0 0
B.
1 0
C.
0 1
Answer
D.
1 1

Answer: Option C

Solution

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