Created
July 23, 2013 00:03
-
-
Save Fhernd/6058768 to your computer and use it in GitHub Desktop.
Demostración de la operación bitwise AND en C#.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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