{"blog_url":"https://goinger.hatenadiary.org/","type":"rich","image_url":null,"author_url":"https://blog.hatena.ne.jp/goinger/","provider_name":"Hatena Blog","url":"https://goinger.hatenadiary.org/entry/20070503","blog_title":"goinger\u7684\u65e5\u8a18","description":"[c] xor\u306e\u30c6\u30af\u30cb\u30c3\u30af\u4e2d\u9593\u30ec\u30b8\u30b9\u30bf\u629c\u304d\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3002 xor.c 1 #include 2 3 int main() 4 { 5 int x, y; 6 x = 0; 7 y = 1; 8 9 printf(\"x = %d, y = %d\\n\", x, y); 10 11 x ^= y; 12 y ^= x; 13 x ^= y; 14 15 printf(\"x = %d, y = %d\\n\", x, y); 16 17 return 0; 18 }\u51fa\u529b\u7d50\u679c x = 0, y = 1 x = 1, y = 0 \u306a\u3093\u304b( \u30fb\u2200\u30fb)\uff72\uff72!! \u3067\u3059\u3088\u306d\u3069\u3046\u3067\u3082\u3044\u3044\u3051\u3069\u306f\u3066\u306a\u30c0\u30a4\u30a2\u30ea\u30fc\u3067\u30b3\u30fc\u30c9\u2026","version":"1.0","width":"100%","published":"2007-05-03 00:00:00","categories":[],"title":"","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgoinger.hatenadiary.org%2Fentry%2F20070503\" title=\" - goinger\u7684\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","author_name":"goinger"}