Bitwise NOT

Tech-Archive recommends: Fix windows errors by optimizing your registry



hi
how can i perform a bitwise NOT on a int or long or uint type variable?
so that the bits should be inverted in the result.

-
aamir


.



Relevant Pages

  • Re: Essential Features
    ... already is bitwise AND on integers. ... unsigned int corrections = ... if (NULL == (fgets(buff, sizeof buff, stdin))) ... printf("Original value 0x%02X Hamming Code 0x%X\n", ...
    (comp.lang.fortran)
  • [ncurses] cat xxx |more
    ... int main ... int ch, prev, row, col; ... Works something like a linux cat. ... But this program is limited by *term window size. ...
    (comp.unix.programmer)
  • Re: how to set default values in instantiating a generic List<>
    ... int, it seems clear that this is actually bitwise data... ... but with proper handling of the enum as a bitwise entity. ... I know that this doesn't answer your question with lists, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: 16x16Matrix
    ... assume int, but you can pick any other type (including the ones you ... then other replies in the thread might. ... Vladimir ... Prev by Date: ...
    (comp.lang.c)
  • Re: Please tell me if Ive written this correctly
    ... Nils Petter Vaskinn wrote: ... > Bitwise AND & ... > int c, space; ...
    (comp.lang.c)