fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int x = 13, y = -5;
  6.  
  7. printf("before: %d %d\n",x,y);
  8.  
  9. x = x ^ y;
  10. y = x ^ y;
  11. x = x ^ y;
  12.  
  13. printf(" after: %d %d\n",x,y);
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
before: 13 -5
 after: -5 13