{"id":1606,"date":"2025-06-26T11:38:42","date_gmt":"2025-06-26T10:38:42","guid":{"rendered":"https:\/\/workboot.fr\/ciela\/?page_id=1606"},"modified":"2025-06-26T11:45:52","modified_gmt":"2025-06-26T10:45:52","slug":"les-entiers-en-c-ansi","status":"publish","type":"page","link":"https:\/\/workboot.fr\/ciela\/les-entiers-en-c-ansi\/","title":{"rendered":"Les entiers en C ANSI"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Attention ici on fait du c Ansi , et nous ne voyons pas tous les types qui existent actuellement.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udd22 Types entiers en C ANSI<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Type<\/th><th>Sign\u00e9 \/ Non sign\u00e9<\/th><th>Taille typique (en bits)<\/th><th>Plage de valeurs<\/th><\/tr><\/thead><tbody><tr><td><code>char<\/code><\/td><td>sign\u00e9 ou non sign\u00e9 (selon l&rsquo;impl\u00e9mentation)<\/td><td>8<\/td><td><code>-128<\/code> \u00e0 <code>127<\/code> ou <code>0<\/code> \u00e0 <code>255<\/code><\/td><\/tr><tr><td><code>signed char<\/code><\/td><td>sign\u00e9<\/td><td>8<\/td><td><code>-128<\/code> \u00e0 <code>127<\/code><\/td><\/tr><tr><td><code>unsigned char<\/code><\/td><td>non sign\u00e9<\/td><td>8<\/td><td><code>0<\/code> \u00e0 <code>255<\/code><\/td><\/tr><tr><td><code>short<\/code> \/ <code>short int<\/code><\/td><td>sign\u00e9<\/td><td>\u226516<\/td><td><code>-32,768<\/code> \u00e0 <code>32,767<\/code><\/td><\/tr><tr><td><code>unsigned short<\/code><\/td><td>non sign\u00e9<\/td><td>\u226516<\/td><td><code>0<\/code> \u00e0 <code>65,535<\/code><\/td><\/tr><tr><td><code>int<\/code><\/td><td>sign\u00e9<\/td><td>\u226516 (souvent 32)<\/td><td><code>-32,768<\/code> \u00e0 <code>32,767<\/code> ou <code>-2,147,483,648<\/code> \u00e0 <code>2,147,483,647<\/code><\/td><\/tr><tr><td><code>unsigned int<\/code><\/td><td>non sign\u00e9<\/td><td>m\u00eame taille que <code>int<\/code><\/td><td><code>0<\/code> \u00e0 <code>65,535<\/code> ou <code>0<\/code> \u00e0 <code>4,294,967,295<\/code><\/td><\/tr><tr><td><code>long<\/code> \/ <code>long int<\/code><\/td><td>sign\u00e9<\/td><td>\u226532<\/td><td><code>-2,147,483,648<\/code> \u00e0 <code>2,147,483,647<\/code><\/td><\/tr><tr><td><code>unsigned long<\/code><\/td><td>non sign\u00e9<\/td><td>\u226532<\/td><td><code>0<\/code> \u00e0 <code>4,294,967,295<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\ud83d\udccc En C ANSI, les tailles exactes d\u00e9pendent de la <strong>machine et du compilateur<\/strong>, mais il existe des <strong>tailles minimales garanties<\/strong>.<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddee Macros utiles (<code>&lt;limits.h&gt;<\/code>)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Tu peux conna\u00eetre les <strong>valeurs limites exactes<\/strong> via ces macros :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#include &lt;limits.h><br><br>printf(\"INT_MAX = %d\\n\", INT_MAX);<br>printf(\"INT_MIN = %d\\n\", INT_MIN);<br>printf(\"UINT_MAX = %u\\n\", UINT_MAX);<br>printf(\"LONG_MAX = %ld\\n\", LONG_MAX);<br>printf(\"CHAR_BIT = %d\\n\", CHAR_BIT); \/\/ nombre de bits dans un char<br><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">on peut regarder ce fichier \/usr\/include\/limits.h<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Attention ici on fait du c Ansi , et nous ne voyons pas tous les types qui existent actuellement. \ud83d\udd22 Types entiers en C ANSI Type Sign\u00e9 \/ Non sign\u00e9 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","_uag_custom_page_level_css":"","footnotes":""},"class_list":["post-1606","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Les entiers en C ANSI - workboot<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/workboot.fr\/ciela\/les-entiers-en-c-ansi\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Les entiers en C ANSI - workboot\" \/>\n<meta property=\"og:description\" content=\"Attention ici on fait du c Ansi , et nous ne voyons pas tous les types qui existent actuellement. \ud83d\udd22 Types entiers en C ANSI Type Sign\u00e9 \/ Non sign\u00e9 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/workboot.fr\/ciela\/les-entiers-en-c-ansi\/\" \/>\n<meta property=\"og:site_name\" content=\"workboot\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-26T10:45:52+00:00\" \/>\n<meta name=\"twitter:label1\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/les-entiers-en-c-ansi\\\/\",\"url\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/les-entiers-en-c-ansi\\\/\",\"name\":\"Les entiers en C ANSI - workboot\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/#website\"},\"datePublished\":\"2025-06-26T10:38:42+00:00\",\"dateModified\":\"2025-06-26T10:45:52+00:00\",\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/workboot.fr\\\/ciela\\\/les-entiers-en-c-ansi\\\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/#website\",\"url\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/\",\"name\":\"workboot\",\"description\":\"Open Source, Open Minds \",\"publisher\":{\"@id\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/#organization\",\"name\":\"workboot\",\"url\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/logo_ciel-dorian-1.png\",\"contentUrl\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/logo_ciel-dorian-1.png\",\"width\":1024,\"height\":950,\"caption\":\"workboot\"},\"image\":{\"@id\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Les entiers en C ANSI - workboot","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/workboot.fr\/ciela\/les-entiers-en-c-ansi\/","og_locale":"fr_FR","og_type":"article","og_title":"Les entiers en C ANSI - workboot","og_description":"Attention ici on fait du c Ansi , et nous ne voyons pas tous les types qui existent actuellement. \ud83d\udd22 Types entiers en C ANSI Type Sign\u00e9 \/ Non sign\u00e9 [&hellip;]","og_url":"https:\/\/workboot.fr\/ciela\/les-entiers-en-c-ansi\/","og_site_name":"workboot","article_modified_time":"2025-06-26T10:45:52+00:00","twitter_misc":{"Dur\u00e9e de lecture estim\u00e9e":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/workboot.fr\/ciela\/les-entiers-en-c-ansi\/","url":"https:\/\/workboot.fr\/ciela\/les-entiers-en-c-ansi\/","name":"Les entiers en C ANSI - workboot","isPartOf":{"@id":"https:\/\/workboot.fr\/ciela\/#website"},"datePublished":"2025-06-26T10:38:42+00:00","dateModified":"2025-06-26T10:45:52+00:00","inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/workboot.fr\/ciela\/les-entiers-en-c-ansi\/"]}]},{"@type":"WebSite","@id":"https:\/\/workboot.fr\/ciela\/#website","url":"https:\/\/workboot.fr\/ciela\/","name":"workboot","description":"Open Source, Open Minds ","publisher":{"@id":"https:\/\/workboot.fr\/ciela\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/workboot.fr\/ciela\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Organization","@id":"https:\/\/workboot.fr\/ciela\/#organization","name":"workboot","url":"https:\/\/workboot.fr\/ciela\/","logo":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/workboot.fr\/ciela\/#\/schema\/logo\/image\/","url":"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/05\/logo_ciel-dorian-1.png","contentUrl":"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/05\/logo_ciel-dorian-1.png","width":1024,"height":950,"caption":"workboot"},"image":{"@id":"https:\/\/workboot.fr\/ciela\/#\/schema\/logo\/image\/"}}]}},"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"admin","author_link":"https:\/\/workboot.fr\/ciela\/author\/admin\/"},"uagb_comment_info":0,"uagb_excerpt":"Attention ici on fait du c Ansi , et nous ne voyons pas tous les types qui existent actuellement. \ud83d\udd22 Types entiers en C ANSI Type Sign\u00e9 \/ Non sign\u00e9 [&hellip;]","_links":{"self":[{"href":"https:\/\/workboot.fr\/ciela\/wp-json\/wp\/v2\/pages\/1606","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/workboot.fr\/ciela\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/workboot.fr\/ciela\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/workboot.fr\/ciela\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/workboot.fr\/ciela\/wp-json\/wp\/v2\/comments?post=1606"}],"version-history":[{"count":3,"href":"https:\/\/workboot.fr\/ciela\/wp-json\/wp\/v2\/pages\/1606\/revisions"}],"predecessor-version":[{"id":1612,"href":"https:\/\/workboot.fr\/ciela\/wp-json\/wp\/v2\/pages\/1606\/revisions\/1612"}],"wp:attachment":[{"href":"https:\/\/workboot.fr\/ciela\/wp-json\/wp\/v2\/media?parent=1606"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}