Home / C# Programming / Operators :: Discussion

Discussion :: Operators

  1. What will be the output of the C#.NET code snippet given below?

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

  2. A.

    102 1 38

    B.

    108 0 32

    C.

    102 0 38

    D.

    1 0 1

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    No answer description available for this question.


Be The First To Comment