{"categories":["C++"],"title":" \u5171\u7528\u4f53\u3092\u4f7f\u3063\u3066\u307f\u308b","height":"190","version":"1.0","provider_url":"https://hatena.blog","blog_title":"so what","description":"#include <cstdio> union Foo { Foo(short i); void show(); private: short i; unsigned char cs[2]; }; Foo::Foo(short i) : i(i) {} void Foo::show() { printf(\"l:%x h:%x\\n\", cs[0], cs[1]); } int main() { union { short i; unsigned char cs[2]; }; i = 0xABCD; printf(\"l:%x h:%x\\n\", cs[0], cs[1]); Foo foo(0xCA\u2026","author_url":"https://blog.hatena.ne.jp/winebarrel/","width":"100%","published":"2008-05-16 00:00:00","author_name":"winebarrel","blog_url":"https://so-wh.at/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fso-wh.at%2Fentry%2F20080516%2Fp6\" title=\" \u5171\u7528\u4f53\u3092\u4f7f\u3063\u3066\u307f\u308b - so what\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://so-wh.at/entry/20080516/p6","type":"rich","image_url":null,"provider_name":"Hatena Blog"}