What will be the output of the following C# code?

bool a = true;
  bool b = false;
  a |= b;
  Console.WriteLine(a);
  Console.ReadLine();

a) 0
b) 1
c) True
d) False

1 thought on “What will be the output of the following C# code?”

Leave a Comment