[ create a new paste ] login | about

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

C, pasted on Oct 18:
1
2
3
4
5
6
7
8
9
10
11
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char* argv[])
{
    int xx = 10;
    int yy = 20;
    xx ^= yy ^= xx ^= yy;
    printf("%d %d\n", xx, yy);
    return 0;
}


Output:
1
20 10


Create a new paste based on this one


Comments: