Questions tagged [ones-complement]

The ones' complement of a numerical value is evaluated by performing a bitwise NOT operation on its binary representation.

The ones' complement of a numerical value is evaluated by performing a NOT operation on its binary representation.

Read also the wikipedia article on Ones' Complement.

91 questions
-8
votes
1 answer

What does this code mean in C, " int x = ~!printf; "?

int x = ~!printf; printf("%d\t%x",x,x); It gives : -1 ffff Can anyone explain ?
Sitesh Roy
  • 387
  • 4
  • 8
1 2 3 4 5 6
7