previous | start | next

Bang

If x is an integer, the unary C operator !x is defined as

        !x = 1 if x is 0
        !x = 0 if x is not 0
     

What are the following expressions where x is an integer value ( 4 bytes or equivalently, 8 hex digits)

!!x
x ^ x
!(x ^ x)


previous | start | next