Created
July 24, 2013 03:37
-
-
Save Fhernd/6067902 to your computer and use it in GitHub Desktop.
Demostración uso operador bitwise desplazamiento derecha 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 DesplazamientoDerecha | |
{ | |
static void Main() | |
{ | |
byte byte1 = 7; | |
byte byte2 = (byte)(byte1 >> 2); | |
Console.WriteLine(byte2); // Imprime: 1 (decimal) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment