MCQOPTIONS
Saved Bookmarks
| 1. |
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. | <i class="csharp-code">n = n && HF7</i> |
| B. | <i class="csharp-code">n = n & 16</i> |
| C. | <i class="csharp-code">n = n & 0xF7</i> |
| D. | <i class="csharp-code">n = n & HexF7</i> |
| E. | <i class="csharp-code">n = n & 8</i> |
| Answer» D. <i class="csharp-code">n = n & HexF7</i> | |