Home / C Programming / Bitwise Operators :: Discussion

Discussion :: Bitwise Operators

  1. What will be the output of the program ?

     #include
    
      int main() 
      {   
          int i=32, j=0x20, k, l, m;     
          k=i|j;  
          l=i&j;   
          m=k^l;   
          printf("%d, %d, %d, %d, %d\n", i, j, k, l, m);    
          return 0;
      } 
    

  2. A.

    0, 0, 0, 0, 0

    B.

    0, 32, 32, 32, 32

    C.

    32, 32, 32, 32, 0

    D.

    32, 32, 32, 32, 32

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    No answer description available for this question.


Be The First To Comment