fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. unsigned int a = 0x2;
  5. unsigned int b = ~a & 0x03;
  6. printf("%04x : %04x\n", a, b);
  7. return 0;
  8. }
  9.  
Success #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
0002 : 0001