Home / C Programming / Bitwise Operators :: Discussion

Discussion :: Bitwise Operators

  1. What will be the output of the program ?

    #include 
    
     int main() 
     {  
             int i=4, j=8;   
             printf("%d, %d, %d\n", i|j&j|i, i|j&&j|i, i^j);    
             return 0;
     } 
    

  2. A.

    4, 8, 0

    B.

    1, 2, 1

    C.

    12, 1, 12

    D.

    0, 0, 0

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    No answer description available for this question.


Be The First To Comment