Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created July 23, 2013 00:03
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/6058768 to your computer and use it in GitHub Desktop.
Save Fhernd/6058768 to your computer and use it in GitHub Desktop.
Demostración de la operación bitwise AND en C#.
class OperadorAND
{
static void Main()
{
byte A = 121;
byte B = 113;
byte resultado =(byte) (A & B);
Console.WriteLine(Convert.ToString(resultado,2)); // Imprime 1110001
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment