Blog

What is the output of the following code?

Boolean v = false, z = true;

if ((!v) | (v ^ z)) {
Console.WriteLine(z);
} else {
Console.WriteLine(v);
}