Vidyalelo
C# Programming · Q68

Operators and Expressions in C Sharp

Programming · C# Programming · question 68

Q68

What will be the output of the following C# 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 > 2); Console.WriteLine(temp); Console.ReadLine();

A.
101 0 34
B.
103 2 38
C.
102 0 38
Answer
D.
101 1 35

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board