{"provider_name":"Hatena Blog","provider_url":"https://hatena.blog","title":"20131112\u3010C\u8a00\u8a9e\u3011\u5171\u7528\u4f53\u3092\u4f7f\u3063\u3066int\u3092long\u306b\u5909\u63db\u3059\u308b","url":"https://mocomei.hatenablog.com/entry/2013/11/12/234346","author_name":"mocomei","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmocomei.hatenablog.com%2Fentry%2F2013%2F11%2F12%2F234346\" title=\"20131112\u3010C\u8a00\u8a9e\u3011\u5171\u7528\u4f53\u3092\u4f7f\u3063\u3066int\u3092long\u306b\u5909\u63db\u3059\u308b - 365\u65e5\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","blog_title":"365\u65e5\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30d6\u30ed\u30b0","published":"2013-11-12 23:43:46","categories":[],"version":"1.0","image_url":null,"description":"\u304a\u984c \u5171\u7528\u4f53\u3092\u4f7f\u3063\u3066int\u3092long\u306b\u5909\u63db\u3059\u308b \u30d7\u30ed\u30b0\u30e9\u30e0\u6982\u8981 int\u3068long\u578b\u3092\u6301\u3064\u5171\u7528\u4f53\u3092\u7528\u610f\u3057\u3001int\u578b\u306e\u30e1\u30f3\u30d0\u306b\u5024\u3092\u4ee3\u5165\u3059\u308b\u3053\u3068\u3067 long\u578b\u306b\u5909\u63db\u3059\u308b \u30bd\u30fc\u30b9 #include <stdio.h> int main(void) { union u_type { int i; int long l; } num; /* l is cleard by 0 */ num.l = 0L; num.i = 100; printf(\"%ld\\n\", num.l); return 0; } \u5b9f\u884c\u7d50\u679c 100","type":"rich","blog_url":"https://mocomei.hatenablog.com/","width":"100%","author_url":"https://blog.hatena.ne.jp/mocomei/"}