[ create a new paste ] login | about

Link: http://codepad.org/sHOK8T4N    [ raw code | output | fork ]

C, pasted on Sep 9:
1
2
3
4
5
6
7
8
9
10
11
#include <stdio.h>
int main() {
  int a, b;
  a = 314, b = 159;
  printf("%d,%d\n", a, b);
  a ^= b;
  b ^= a;
  a ^= b;
printf("%d,%d\n", a, b);
  return 0;
}


Output:
1
2
314,159
159,314


Create a new paste based on this one


Comments: