>1,"/>
Home / C Programming / Bitwise Operators :: Discussion

Discussion :: Bitwise Operators

  1. What will be the output of the program?

      #include
      int main()
      {    
           printf("%d %d\n", 321, 320); 
           printf("%d %d\n", 321, 320);     
           printf("%d %d\n", 32>>1, 32>>0);    
           printf("%d %d\n", 32>>-1, 32>>-0);     
           return 0; 
     } 
    

  2. A.

    Garbage values

    B.

    64 32
    0 32
    16 32
    0 32

    C.

    All zeros

    D.

    8 0
    0 0
    32 0
    0 16

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    No answer description available for this question.


Be The First To Comment