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