Home / C Programming / Bitwise Operators :: Discussion

Discussion :: Bitwise Operators

  1. If an unsigned int is 2 bytes wide then, What will be the output of the program ?

     #include
     
      int main() 
      {    
          unsigned int a=0xffff;  
          ~a;     
          printf("%x\n", a);    
          return 0;
     }
    

  2. A.

    ffff

    B.

    0000

    C.

    00ff

    D.

    ddfd

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    No answer description available for this question.


Be The First To Comment