fork(2) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int x=5, y=30;
  5. printf("Original x=%d, y=%d\n",x,y);
  6. x^=y;
  7. printf("Primer paso x=%d, y=%d\n",x,y);
  8. x^=y;
  9. printf("Segunda paso x=%d, y=%d\n",x,y);
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 2052KB
stdin
Standard input is empty
stdout
Original x=5, y=30
Primer paso x=27, y=30
Segunda paso x=5, y=30