{"blog_title":"yohhoy\u306e\u65e5\u8a18","author_url":"https://blog.hatena.ne.jp/yohhoy/","title":"sizeof\u6f14\u7b97\u5b50\u3068\u30aa\u30da\u30e9\u30f3\u30c9\u306e\u8a55\u4fa1","url":"https://yohhoy.hatenadiary.jp/entry/20120411/p1","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20120411%2Fp1\" title=\"sizeof\u6f14\u7b97\u5b50\u3068\u30aa\u30da\u30e9\u30f3\u30c9\u306e\u8a55\u4fa1 - yohhoy\u306e\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>","width":"100%","image_url":null,"author_name":"yohhoy","provider_url":"https://hatena.blog","published":"2012-04-11 00:00:00","height":"190","blog_url":"https://yohhoy.hatenadiary.jp/","description":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9eC/C++\u8a00\u8a9e\u3067\u306f\u3001sizeof\u6f14\u7b97\u5b50\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u306f\u8a55\u4fa1\u3055\u308c\u306a\u3044(evaluated)\u3002 int a = 42; size_t n = sizeof(++a); // \u5f0f(++a)\u306f\u8a55\u4fa1\u3055\u308c\u306a\u3044 assert(a == 42); C++11 JTC1/SC22/WG21 N3337 5/p7, 5.3.3/p1\u3088\u308a\u90e8\u5206\u5f15\u7528\u3002 In some contexts, unevaluated operands appear (5.2.8, 5.3.3, 5.3.7, 7.1.6.2). An unevaluated operand is not evaluated. The size\u2026","categories":["C","C++"],"type":"rich","provider_name":"Hatena Blog"}