previous | start | next

! Operator Examples



int x = 0x00008000

In binary x: 0000 0000 0000 0000 1000 0000 0000 0000
         !x: 0000 0000 0000 0000 0000 0000 0000 0000

More examples:
         x     !x
         --------
         0      1
         1      0
         2      0
        -1      0
      5280      0

If x is 4, what is !!x



previous | start | next