{"id":2611,"date":"2016-12-22T00:13:42","date_gmt":"2016-12-21T23:13:42","guid":{"rendered":"http:\/\/roboblog.fatal-fury.de\/?p=2611"},"modified":"2016-12-22T00:13:42","modified_gmt":"2016-12-21T23:13:42","slug":"sizeofint","status":"publish","type":"post","link":"http:\/\/roboblog.fatal-fury.de\/?p=2611","title":{"rendered":"sizeof(int)"},"content":{"rendered":"<p>According to N3337<\/p>\n<blockquote><p>\n3.9.1  Fundamental types  [basic.fundamental]<br \/>\n2<br \/>\nThere are five standard signed integer types : \u201csigned char\u201d, \u201cshort int\u201d, \u201cint\u201d, \u201clong int\u201d, and \u201clong<br \/>\nlong int\u201d. In this list, <strong>each type provides at least as much storage as those preceding it in the list.<\/strong><br \/>\nThere may also be implementation-defined extended signed integer types. The standard and extended signed<br \/>\ninteger types are collectively called signed integer types. <strong>Plain ints have the natural size suggested by the<br \/>\narchitecture of the execution environment 44<\/strong>; the other signed integer types are provided to meet special<br \/>\nneeds.<\/p>\n<p><strong>44) ) that is, large enough to contain any value in the range of INT_MIN and INT_MAX, as defined in the header <climits>.<\/strong><\/p>\n<\/blockquote>\n<p>Thus<br \/>\nsizeof(short) <= sizeof(int) <= sizeof(long)\nThx 2 m$ 4 <= instead of < ;)\n\n\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>According to N3337 3.9.1 Fundamental types [basic.fundamental] 2 There are five standard signed integer types : \u201csigned char\u201d, \u201cshort int\u201d, \u201cint\u201d, \u201clong int\u201d, and \u201clong long int\u201d. In this list, each type provides at least as much storage as those preceding it in the list. There may also be implementation-defined extended signed integer types. The [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[17],"class_list":["post-2611","post","type-post","status-publish","format-standard","hentry","category-allgemein","tag-cpp"],"_links":{"self":[{"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/posts\/2611","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2611"}],"version-history":[{"count":2,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/posts\/2611\/revisions"}],"predecessor-version":[{"id":2613,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/posts\/2611\/revisions\/2613"}],"wp:attachment":[{"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2611"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2611"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2611"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}