Free cookie to the first person who can figure out what this little piece of C code is trying to accomplish:
Quote:
int x = 1;
int y = 5;
x ^= y ^= x ^= y;
|
What are the contents of x and y after this piece of code has run?
Warning: Submitter does not have any actual cookies to give out. Respondants will have to suffice with Submitter's admiration and respect. Void where prohibited.
Edit: This has already been answered below by
HFrankenstein. Don't read any further if you want to do this challenge by yourself.