{"image_url":null,"type":"rich","provider_url":"https://hatena.blog","author_name":"yohhoy","blog_title":"yohhoy\u306e\u65e5\u8a18","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20220906%2Fp1\" title=\"nullptr\u5b9a\u6570 in \u6a19\u6e96C - 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>","title":"nullptr\u5b9a\u6570 in \u6a19\u6e96C","provider_name":"Hatena Blog","categories":["C","C2x"],"author_url":"https://blog.hatena.ne.jp/yohhoy/","version":"1.0","description":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9eC\u306e\u6b21\u671f\u4ed5\u69d8C2x(C23)\u306b\u3066\u3001\u3064\u3044\u306bC\u8a00\u8a9e\u306b\u3082\u771f\u306e\u30cc\u30eb\u30dd\u30a4\u30f3\u30bf\u5b9a\u6570nullptr\u304c\u3084\u3063\u3066\u304f\u308b\u3002 C++11\uff08\u2192id:yohhoy:20120503\uff09\u304b\u3089\u9045\u308c\u308b\u3053\u306812\u5e74\u3002 int *p1 = nullptr; // C2x\u4ee5\u964d int *p2 = NULL; int *p3 = 0; \u307e\u3068\u3081\uff1a C/C++\u4e21\u8a00\u8a9e\u306enullptr\u304c\u30bb\u30de\u30f3\u30c6\u30a3\u30af\u30b9\u4e00\u81f4\u3059\u308b\u3088\u3046\u8a2d\u8a08\u3055\u308c\u3066\u3044\u308b\u3002 \u4e8b\u524d\u5b9a\u7fa9\u5b9a\u6570*1nullptr\u306f\u3001\u5c02\u7528\u306enullptr_t\u578b\u304c\u53d6\u308a\u3046\u308b\u552f\u4e00\u306e\u5024\u3002 \u5b9a\u6570nullptr\u306f\u3044\u3064\u3067\u3082\u5229\u7528\u53ef\u80fd\uff08\u30d8\u30c3\u30c0include\u4e0d\u8981\uff09\u3002 nullptr_t\u578b\u306f\u6a19\u6e96\u30d8\u30c3\u30c0 <stddef.h>\u2026","published":"2022-09-06 00:00:00","blog_url":"https://yohhoy.hatenadiary.jp/","url":"https://yohhoy.hatenadiary.jp/entry/20220906/p1","width":"100%","height":"190"}