Home / C# Programming / Operators :: Discussion

Discussion :: Operators

  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?

  2. A.
    n = n && HF7
    B.
    n = n & 16
    C.
    n = n & 0xF7
    D.
    n = n & HexF7
    E.
    n = n & 8

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    No answer description available for this question.


Be The First To Comment