Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created July 23, 2013 00:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fhernd/6059001 to your computer and use it in GitHub Desktop.
Save Fhernd/6059001 to your computer and use it in GitHub Desktop.
Demostración del operador bitwise OR inclusivo.
class OperadorOR
{
static void Main()
{
byte A = 39;
byte B = 42;
byte resultado = (byte) (A|B);
Console.WriteLine(Convert.ToString(resultado,2)); // Imprime 101111
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment