Operators

Q1: Suppose n is a variable of the type Byte and we wish to put OFF its fourth bit (from right) without disturbing any other bits. Which of the following statements will do this correctly?

A n = n && HF7

B n = n & 16

C n = n & 0xF7

D n = n & HexF7

E n = n & 8

ANS:C - n = n & 0xF7

No answer description is available. Let's discuss.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.