adplus-dvertising
frame-decoration

Question

What will be the output of the C#.NET code snippet given below?

int i = 2, j = i;
if (Convert.ToBoolean((i | j & 5) & (j - 25 * 1)))
    Console.WriteLine(1); 
else
    Console.WriteLine(0);

a.

0

b.

1

c.

Compile Error

d.

Run time Error

Answer: (a).0

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What will be the output of the C#.NET code snippet given below?