Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- byte a, b;
- a = 1;
- b = 2;
- var c = a - b; //In visual studio, hover over "var" and the tip will indicate the data type, or you can get the value from cName below.
- string cName = c.GetType().Namespace + '.' + c.GetType().Name;
- byte a = 0x80; // Won't compile!
- byte b = (byte) 0x80;
- byte c = -128; // Equal to b
- byte a = 70;
- byte b = 80;
- byte c = a + b; // c == -106
- signed byte b = 0b10000000;
- b = b >> 1; // b == 0b1100 0000
- b = b & 0x7F;// b == 0b0100 0000
- unsigned byte b = 0b10000000;
- b = b >> 1; // b == 0b0100 0000;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement