fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int x = 0;
  5. int y = 1;
  6. int z = -1;
  7.  
  8. int xx = 1 & (x ^= 1);
  9. int yy = 1 & (x ^= 1);
  10. int zz = 1 & (x ^= 1);
  11.  
  12. printf("%d %d %d %d %d %d\n", x, xx, y, yy, z, zz);
  13.  
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 2008KB
stdin
Standard input is empty
stdout
1 1 1 0 -1 1