C# Programming - Operators - Discussion

Discussion Forum : Operators - General Questions (Q.No. 2)
2.
What will be the output of the C#.NET code snippet given below?
byte b1 = 0xF7;
byte b2 = 0xAB;
byte temp;
temp = (byte)(b1 & b2);
Console.Write (temp + " ");
temp = (byte)(b1^b2);
Console.WriteLine(temp);
163 92
92 163
192 63
0 1
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
33 comments Page 3 of 4.

Rohit said:   1 decade ago
Please explain all steps and it's working rule.

Sai said:   10 years ago
How to identify f = 15.... a = 10?

Veni said:   1 decade ago
Hi please tell me how its work.

Sajila said:   1 decade ago
0x means hexadecimal value.

Anandhajothi.s said:   1 decade ago
How to work this problem ?

Uppy said:   1 decade ago
What is the use of 0x ?

Bhargav Pandya said:   1 decade ago
Thanks Abhijit Marne.

Deeksha said:   1 decade ago
Whats the use of 0x?

Gggggg said:   1 decade ago
Thank you bhairav!

Robin5480@gmail.com said:   1 decade ago
Thanks to Shruthi.


Post your comments here:

Your comments will be displayed after verification.