Saturday, February 28, 2015

logical or and and versus conditional or and and in C#

The logical ors and ands are the ones with only one pipe symbol or ampersand. This stackoverflow thread shows how they work in a "bitwise" manner like so:

  • 0101 & 0011 = 0001
  • 0101 | 0011 = 0111

No comments:

Post a Comment