Prakash Vidwans

Prakash Vidwans

  • NA
  • 5
  • 1.3k

Meaning of code and be Output of it !

Nov 27 2013 1:25 AM
Hi guys ,
Please help me to understand the following code meaning !


Code :

byte b1 = 0xAB;
byte b2 = 0x99;
byte temp;
temp = (byte)~b2;
Console.Write(temp + " ");
temp = (byte)(b1 << b2);
Console.Write (temp + " ");
temp = (byte) (b2 >> 2);
Console.WriteLine(temp);

Answers (1)