What will be the output of the following C# code? [code] static void Main(string[] args) { byte b1 = 0 * AB; byte b2 = 0 *

What will be the output of the following C# code?
Code:
 static void Main(string[] args)
 {
     byte b1 = 0 * AB;
     byte b2 = 0 * 99;
     byte temp;
     temp = (byte) ~b2;
     Console.Write( temp + " ");
     temp = (byte) (b1 << b2);
     Console.Write(temp + " ");
     temp = (byte)(b2  >> 2);
     Console.WriteLine(temp);
     Console.ReadLine();
 }
A. 101 0 34
B. 103 2 38
C. 102 0 38
D. 101 1 35
 

Tìm kiếm

Back
Top