GATE CSE
First time here? Checkout the FAQ!
x
0 votes
47 views

Write one or more C statements that clears (i.e., sets to 0) bits 11 and 12 of the variable "x" without disturbing the other bits using bit-level C operators. The variable mask, declared below, may be helpful.

int mask = 0x00001800;
int x = arbitrary_value;

asked in Programming by (281 points)   | 47 views

Please log in or register to answer this question.



Top Users Sep 2017
  1. Habibkhan

    7184 Points

  2. Warrior

    2664 Points

  3. Arjun

    2582 Points

  4. rishu_darkshadow

    2520 Points

  5. A_i_$_h

    2280 Points

  6. nikunj

    1980 Points

  7. manu00x

    1856 Points

  8. makhdoom ghaya

    1770 Points

  9. Bikram

    1744 Points

  10. SiddharthMahapatra

    1718 Points


26,151 questions
33,733 answers
79,970 comments
31,120 users