{"id":1849,"date":"2022-06-14T15:49:13","date_gmt":"2022-06-14T20:49:13","guid":{"rendered":"http:\/\/ve2cuy.com\/420-1c4\/?page_id=1849"},"modified":"2025-03-16T12:59:21","modified_gmt":"2025-03-16T17:59:21","slug":"langage-c-les-variables","status":"publish","type":"page","link":"https:\/\/ve2cuy.com\/420-1c4\/index.php\/langage-c-les-variables\/","title":{"rendered":"Langage C++ :  Les variables"},"content":{"rendered":"<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"612\" height=\"612\" src=\"http:\/\/ve2cuy.com\/420-1c4\/wp-content\/uploads\/2022\/06\/istockphoto-949216052-612x612-1.jpg\" alt=\"\" class=\"wp-image-1880\" style=\"width:370px;height:370px\" srcset=\"https:\/\/ve2cuy.com\/420-1c4\/wp-content\/uploads\/2022\/06\/istockphoto-949216052-612x612-1.jpg 612w, https:\/\/ve2cuy.com\/420-1c4\/wp-content\/uploads\/2022\/06\/istockphoto-949216052-612x612-1-300x300.jpg 300w, https:\/\/ve2cuy.com\/420-1c4\/wp-content\/uploads\/2022\/06\/istockphoto-949216052-612x612-1-150x150.jpg 150w\" sizes=\"auto, (max-width: 612px) 100vw, 612px\" \/><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading has-vivid-purple-color has-text-color\">Contenu<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Le concept de variable<\/li>\n\n\n\n<li>La d\u00e9claration de variables<\/li>\n\n\n\n<li>Affectation d&rsquo;une donn\u00e9e \u00e0 une variable<\/li>\n\n\n\n<li>Initialisation d&rsquo;une variable<\/li>\n\n\n\n<li>Port\u00e9e (visibilit\u00e9) des variables<\/li>\n\n\n\n<li>D\u00e9finition de constantes\n<ul class=\"wp-block-list\">\n<li>const<\/li>\n\n\n\n<li>#define<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Les diff\u00e9rents types de variable en C++ (sous Arduino Uno)<\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading has-luminous-vivid-orange-color has-text-color\">1 &#8211; Le concept de variable<\/h2>\n\n\n\n<p>Une variable est un objet rep\u00e9r\u00e9 par son nom, pouvant contenir des donn\u00e9es, qui pourront \u00eatre modifi\u00e9es lors de l&rsquo;ex\u00e9cution du programme. Les variables en langage C++ sont&nbsp;<a href=\"https:\/\/web.maths.unsw.edu.au\/~lafaye\/CCM\/cpp\/cpptype.htm\">typ\u00e9es<\/a>, c&rsquo;est-\u00e0-dire que les donn\u00e9es contenues dans celles-ci poss\u00e8dent un type, ainsi elles sont donc stock\u00e9es \u00e0 une adresse m\u00e9moire et occupent un nombre d&rsquo;octets d\u00e9pendant du type de donn\u00e9e stock\u00e9e.<\/p>\n\n\n\n<p>En langage C++, les noms de variables peuvent \u00eatre aussi long que l&rsquo;on d\u00e9sire, toutefois le compilateur ne tiendra compte que des 32 premiers caract\u00e8res. De plus, elles doivent r\u00e9pondre \u00e0 certains crit\u00e8res&nbsp;:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>un nom de variable doit commencer par une lettre (majuscule ou minuscule) ou un \u00ab&nbsp;_&nbsp;\u00bb (pas par un chiffre)<\/li>\n\n\n\n<li>un nom de variable peut comporter des lettres, des chiffres et le caract\u00e8re \u00ab&nbsp;_&nbsp;\u00bb (les espaces ne sont pas autoris\u00e9s !)<\/li>\n\n\n\n<li>les noms de variables ne peuvent pas \u00eatre les noms suivants (qui sont des noms r\u00e9serv\u00e9s)&nbsp;:\n<ul class=\"wp-block-list\">\n<li><em>asm, auto<\/em><\/li>\n\n\n\n<li><em>break<\/em><\/li>\n\n\n\n<li><em>case, catch, char, class, const, continue<\/em><\/li>\n\n\n\n<li><em>default, delete, do, double<\/em><\/li>\n\n\n\n<li><em>else, enum, extern<\/em><\/li>\n\n\n\n<li><em>float, for, friend<\/em><\/li>\n\n\n\n<li><em>goto<\/em><\/li>\n\n\n\n<li><em>if, inline, int<\/em><\/li>\n\n\n\n<li><em>long<\/em><\/li>\n\n\n\n<li><em>new<\/em><\/li>\n\n\n\n<li><em>operator<\/em><\/li>\n\n\n\n<li><em>private, protected, public<\/em><\/li>\n\n\n\n<li><em>register, return<\/em><\/li>\n\n\n\n<li><em>short, signed, sizeof, static, struct, switch<\/em><\/li>\n\n\n\n<li><em>template, this, throw, try, typedef<\/em><\/li>\n\n\n\n<li><em>union, unsigned<\/em><\/li>\n\n\n\n<li><em>virtual, void, volatile<\/em><\/li>\n\n\n\n<li><em>while<\/em><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading has-luminous-vivid-orange-color has-text-color\">1.1 &#8211; Voici une liste de noms de variables valides et invalides<\/h3>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><th>Nom de variable valide<\/th><th><strong>Nom de variable invalide<\/strong><\/th><th><strong>Raison<\/strong><\/th><\/tr><tr><td><em><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#1d6c4f\" class=\"has-inline-color\">Fruit<\/mark><\/strong><\/em><\/td><td><em><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">Un fruit<\/mark>&nbsp;<\/strong><\/em><\/td><td>comporte des espaces<\/td><\/tr><tr><td><em><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#1d6c4f\" class=\"has-inline-color\">nombreDeJoueur<\/mark><\/strong><\/em><\/td><td><em><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">314Pi<\/mark><\/strong><\/em>&nbsp;<\/td><td>commence par un chiffre<\/td><\/tr><tr><td><em><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#1d6c4f\" class=\"has-inline-color\">nombre_de_joueur<\/mark><\/strong><\/em><\/td><td><em><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">admin@4201C4.com<\/mark>&nbsp;<\/strong><\/em><\/td><td>caract\u00e8re sp\u00e9cial @<\/td><\/tr><tr><td><em><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#1d6c4f\" class=\"has-inline-color\">nom_de_variable_123<\/mark><\/strong><\/em><\/td><td><strong><em><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">a-b-c<\/mark><\/em><\/strong>&nbsp;<\/td><td>signe &#8211; interdit<\/td><\/tr><tr><td><em><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#1d6c4f\" class=\"has-inline-color\">_31415<\/mark><\/strong><\/em><\/td><td><em><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">for<\/mark><\/strong><\/em>&nbsp;<\/td><td>nom r\u00e9serv\u00e9<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td><img decoding=\"async\" src=\"https:\/\/web.maths.unsw.edu.au\/~lafaye\/CCM\/images\/warning.gif\"><\/td><td><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">NOTE<\/mark><\/strong>: <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">Les noms de variables sont sensibles \u00e0 la casse<\/mark>. (le langage C++ fait la diff\u00e9rence entre un nom en majuscules et un nom en minuscules).  Par exemple, <br><br><em><strong>nombreDeJoueur<\/strong><\/em> et <em><strong>nombredejoueur<\/strong><\/em> sont deux variables diff\u00e9rentes. <\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading has-text-color\" style=\"color:#398e6f\">2 &#8211; La d\u00e9claration de variables<\/h2>\n\n\n\n<p>Pour pouvoir utiliser une variable,<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\"><strong> il faut la d\u00e9finir<\/strong><\/mark>, c&rsquo;est-\u00e0-dire lui donner un nom, mais surtout un type de donn\u00e9e \u00e0 stocker afin qu&rsquo;un espace m\u00e9moire conforme au type de donn\u00e9e qu&rsquo;elle contient lui soit r\u00e9serv\u00e9.<\/p>\n\n\n\n<p>Une variable se d\u00e9clare de la fa\u00e7on suivante&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">type<\/mark> Nom_de_la_variable;<\/pre>\n\n\n\n<p>ou bien s&rsquo;il y a plusieurs variables du m\u00eame type&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">type<\/mark> Nom_de_la_variable1, Nom_de_la_variable2, ...;\n<\/pre>\n\n\n\n<p>Par exemple,<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">int nombreDeJoueur, nombreDeVie;<\/pre>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td><img decoding=\"async\" src=\"https:\/\/web.maths.unsw.edu.au\/~lafaye\/CCM\/images\/warning.gif\"><\/td><td>Le langage C++ impose que les variables soient imp\u00e9rativement d\u00e9clar\u00e9es.  Il est possible de d\u00e9finir une variable \u00e0 n&rsquo;importe quel endroit du code, afin de le rendre plus lisible<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading has-text-color\" style=\"color:#a06974\">3 &#8211; Affectation d&rsquo;une donn\u00e9e \u00e0 une variable<\/h2>\n\n\n\n<p>Pour stocker une donn\u00e9e dans une variable que l&rsquo;on a initialis\u00e9e, il faut faire une affectation, c&rsquo;est-\u00e0-dire pr\u00e9ciser la donn\u00e9e qui va \u00eatre stock\u00e9e \u00e0 l&#8217;emplacement m\u00e9moire qui a \u00e9t\u00e9 r\u00e9serv\u00e9 lors de l&rsquo;initialisation.<\/p>\n\n\n\n<p>Pour cela on utilise l&rsquo;op\u00e9rateur d&rsquo;affectation \u00ab&nbsp;<em>=<\/em>&nbsp;\u00bb &nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Nom_de_la_variable = donn\u00e9e;<\/pre>\n\n\n\n<p>Pour stocker le caract\u00e8re B dans la variable que l&rsquo;on a appel\u00e9e&nbsp;<em>Caractere<\/em>, il faudra \u00e9crire&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Caractere = 'B';<\/pre>\n\n\n\n<p>Ce qui signifie&nbsp;<em>stocker la valeur&nbsp;<a href=\"https:\/\/web.maths.unsw.edu.au\/~lafaye\/CCM\/base\/ascii.htm\">ASCII<\/a>&nbsp;de \u00ab&nbsp;B&nbsp;\u00bb dans la variable nomm\u00e9e \u00ab&nbsp;Caractere&nbsp;\u00bb<\/em>. Il est bien \u00e9vident qu&rsquo;il faut avoir pr\u00e9alablement d\u00e9clar\u00e9 la variable en lui affectant le type&nbsp;<em>char<\/em>&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> char Caractere;<\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading has-text-color\" style=\"color:#656e71\">4 &#8211; Initialisation d&rsquo;une variable<\/h2>\n\n\n\n<p>La d\u00e9claration d&rsquo;une variable ne fait que \u00ab&nbsp;r\u00e9server&nbsp;\u00bb un emplacement m\u00e9moire o\u00f9 stocker la variable. Tant que l&rsquo;on ne lui a pas affect\u00e9 une donn\u00e9e celle-ci contient ce qui se trouvait pr\u00e9c\u00e9demment \u00e0 cet emplacement, que l&rsquo;on appelle&nbsp;<em>garbage<\/em>&nbsp;(en fran\u00e7ais&nbsp;<em>d\u00e9tritus<\/em>).<\/p>\n\n\n\n<p>On peut donc affecter une valeur initiale \u00e0 la variable lors de sa d\u00e9claration, on parle alors d&rsquo;initialisation&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">type Nom_de_la_variable = donnee;<\/pre>\n\n\n\n<p>Par exemple&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">float Toto = 125.36;<\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading has-text-color\" style=\"color:#a07b16\">5 &#8211; Port\u00e9e (visibilit\u00e9) des variables<\/h2>\n\n\n\n<p>Selon l&rsquo;endroit o\u00f9 on d\u00e9clare une variable, celle-ci pourra \u00eatre accessible (visible) de partout dans le code ou bien que dans une portion confin\u00e9e de celui-ci (\u00e0 l&rsquo;int\u00e9rieur d&rsquo;une&nbsp;<a href=\"https:\/\/web.maths.unsw.edu.au\/~lafaye\/CCM\/cpp\/cppfonc.htm\">fonction<\/a>&nbsp;par exemple), on parle de&nbsp;<em>port\u00e9e<\/em>&nbsp;(ou&nbsp;<em>visibilit\u00e9<\/em>) d&rsquo;une variable.<\/p>\n\n\n\n<p>Lorsqu&rsquo;une variable est d\u00e9clar\u00e9e dans le code m\u00eame, c&rsquo;est-\u00e0-dire \u00e0 l&rsquo;ext\u00e9rieur de toute fonction ou de tout&nbsp;<a href=\"https:\/\/web.maths.unsw.edu.au\/~lafaye\/CCM\/cpp\/cppcond.htm\">bloc d&rsquo;instruction<\/a>s, elle est accessible de partout dans le code (n&rsquo;importe quelle fonction du programme peut faire appel \u00e0 cette variable). On parle alors de&nbsp;<strong>variable globale<\/strong>.<\/p>\n\n\n\n<p>Lorsque l&rsquo;on d\u00e9clare une variable \u00e0 l&rsquo;int\u00e9rieur d&rsquo;un bloc d&rsquo;instructions (entre des accolades), sa port\u00e9e se confine \u00e0 l&rsquo;int\u00e9rieur du bloc dans lequel elle est d\u00e9clar\u00e9e.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Une variable d\u00e9clar\u00e9e au d\u00e9but du code, c&rsquo;est-\u00e0-dire avant tout bloc de donn\u00e9e, sera globale, on pourra alors l&rsquo;utiliser \u00e0 partir de n&rsquo;importe quel bloc d&rsquo;instruction.<\/li>\n\n\n\n<li>Une variable d\u00e9clar\u00e9e \u00e0 l&rsquo;int\u00e9rieur d&rsquo;un bloc d&rsquo;instructions (dans une fonction ou une boucle par exemple) aura une port\u00e9e limit\u00e9e \u00e0 ce seul bloc d&rsquo;instruction, c&rsquo;est-\u00e0-dire qu&rsquo;elle est inutilisable ailleurs, on parle alors de variable locale.<\/li>\n<\/ul>\n\n\n\n<p>En C++, il existe un op\u00e9rateur, appel\u00e9&nbsp;<em>op\u00e9rateur de r\u00e9solution de port\u00e9e<\/em>, qui permet d&rsquo;acc\u00e9der \u00e0 des variables globales plut\u00f4t qu&rsquo;\u00e0 des variables locales, lorsqu&rsquo;il en existe portant le m\u00eame nom. Cet op\u00e9rateur se note&nbsp;<em>::<\/em>. Imaginons que l&rsquo;on d\u00e9finisse plusieurs variables portant le m\u00eame nom dans des blocs diff\u00e9rents&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">int i = 3;\n\nvoid main(){\n\tint i = 12;\n\n\t::i = i + ::i;\n\n}<\/pre>\n\n\n\n<p>L&rsquo;op\u00e9rateur de r\u00e9solution de port\u00e9e plac\u00e9 devant le nom de la variable indique qu&rsquo;il s&rsquo;agit de la variable globale. Ainsi, l&rsquo;instruction&nbsp;<em>::i = i + ::i;<\/em>&nbsp;permet d&rsquo;ajouter \u00e0 la variable globale&nbsp;<em>i<\/em>&nbsp;(celle situ\u00e9e en dehors de la fonction&nbsp;<em>main()<\/em>) la valeur de la variable locale&nbsp;<em>i<\/em>.<\/p>\n\n\n\n<p>D&rsquo;une mani\u00e8re g\u00e9n\u00e9rale il est tout de m\u00eame pr\u00e9f\u00e9rable de donner des noms diff\u00e9rents aux variables locales et globales&#8230;<a><\/a><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading has-vivid-cyan-blue-color has-text-color\">6 &#8211; D\u00e9finition de constantes<\/h2>\n\n\n\n<p>Une constante est une variable dont la valeur est inchangeable lors de l&rsquo;ex\u00e9cution d&rsquo;un programme. En langage C, les constantes sont d\u00e9finies gr\u00e2ce \u00e0 la directive du pr\u00e9processeur&nbsp;<em>#define<\/em>, qui permet de remplacer toutes les occurrences du mot qui le suit par la valeur imm\u00e9diatement derri\u00e8re elle. Par exemple la directive suivante remplacera toutes les cha\u00eenes de caract\u00e8res \u00ab&nbsp;_Pi&nbsp;\u00bb par la valeur 3.1415927&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#define _Pi 3.1415927<\/pre>\n\n\n\n<p>Toutefois, avec cette m\u00e9thode les constantes ne sont pas typ\u00e9es, c&rsquo;est pourquoi le C++ rajoute le mot r\u00e9serv\u00e9&nbsp;<em>const<\/em>, qui permet de d\u00e9finir une constante typ\u00e9e, qui ne pourra pas \u00eatre modifi\u00e9e pendant toute la dur\u00e9e d&rsquo;ex\u00e9cution du programme. Il est ainsi n\u00e9cessaire d&rsquo;initialiser la constante d\u00e8s sa d\u00e9finition&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">const int A = 26;\n\nconst float Pi = 3.14159\n<\/pre>\n\n\n\n<pre id=\"block-e3fdbb83-0743-40cf-af94-66e4f35bf64c\" class=\"wp-block-preformatted\"><em><strong>Voici la SOURCE des modules 1 \u00e0 6<\/strong><\/em>: <a href=\"https:\/\/www.commentcamarche.net\/contents\/197-langage-c-les-variables\">Les variables en C++<\/a><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading has-vivid-red-color has-text-color\">7 &#8211; Les diff\u00e9rents types de variable en C++<\/h2>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<div class=\"wp-block-getwid-table has-table-layout-auto\"><table><thead><tr><th>Type<\/th><th>Description\/Exemple<\/th><th>Signe<\/th><th>Min<\/th><th>Max<\/th><th>Octets<\/th><\/tr><\/thead><tbody><tr><td style=\"background-color:#ffffff;color:#707e88\"><strong><a href=\"https:\/\/www.arduino.cc\/reference\/fr\/language\/variables\/data-types\/bool\/\">bool<\/a><\/strong><\/td><td>Repr\u00e9sente 2 \u00e9tats <br>(true\/false)<br><strong>bool<\/strong> allumer = <strong>false<\/strong>;<\/td><td><\/td><td>0<\/td><td>1<\/td><td>1 (8bits)<\/td><\/tr><tr><td style=\"color:#9b51e0;background-color:#ffffff\"><strong><a href=\"https:\/\/www.arduino.cc\/reference\/fr\/language\/variables\/data-types\/char\/\">char<\/a><\/strong><\/td><td>Sert \u00e0 stocker un caract\u00e8re <br>ou un petit nombre mais<br>non recommand\u00e9.<\/td><td>sign\u00e9<\/td><td>-128<\/td><td>127<\/td><td>1 (8)<\/td><\/tr><tr><td style=\"color:#9b51e0\"><strong><a href=\"https:\/\/www.arduino.cc\/reference\/fr\/language\/variables\/data-types\/char\/\">char<\/a><\/strong><\/td><td style=\"color:#000000\"><strong>unsigned<\/strong> <em>char<\/em> unCar = &lsquo;A&rsquo;;<\/td><td>non<\/td><td>0<\/td><td>255<\/td><td>1 (8)<\/td><\/tr><tr><td style=\"color:#0a704b\"><strong><a href=\"https:\/\/www.arduino.cc\/reference\/fr\/language\/variables\/data-types\/byte\/\">byte<\/a><\/strong><\/td><td>Plus petit unit\u00e9 de stockage<\/td><td><\/td><td>0<\/td><td>255<\/td><td>1 (8)<\/td><\/tr><tr><td style=\"color:#cf2e2e\"><strong><a href=\"https:\/\/www.arduino.cc\/reference\/fr\/language\/variables\/data-types\/int\/\">int<\/a><\/strong><\/td><td><em><strong>int<\/strong><\/em> i, j;<\/td><td>sign\u00e9<\/td><td>-32768<\/td><td>32767<\/td><td>2 (16)<\/td><\/tr><tr><td style=\"color:#cf2e2e\"><strong>int<\/strong><\/td><td><strong>unsigned<\/strong> <em><strong>int<\/strong><\/em> var1, var2;<\/td><td>non<\/td><td>0<\/td><td>65535<\/td><td>2 (16)<\/td><\/tr><tr><td style=\"color:#cf2e2e\"><strong>int<\/strong><\/td><td><strong>unsigned short<\/strong> <em><strong>int<\/strong><\/em> var1=1;<\/td><td><\/td><td>0<\/td><td>65535<\/td><td>2 (16)<\/td><\/tr><tr><td style=\"color:#cf2e2e\"><strong>int<\/strong><\/td><td><strong>long<\/strong> <em><strong>int<\/strong><\/em> grandNombre;<\/td><td>sign\u00e9<\/td><td>-2147483648<\/td><td>2147483647<\/td><td>4 (32)<\/td><\/tr><tr><td style=\"color:#cf2e2e\"><strong>int<\/strong><\/td><td><strong>unsigned long<\/strong> <em><strong>int<\/strong><\/em> g=12L;<\/td><td>non<\/td><td>0<\/td><td>4294967295<\/td><td>4 (32)<\/td><\/tr><tr><td style=\"color:#0693e3\"><strong><a href=\"https:\/\/www.arduino.cc\/reference\/fr\/language\/variables\/data-types\/float\/\">float<\/a><\/strong><\/td><td>Nombre&nbsp;\u00e0 virgule flottante<br><strong>float<\/strong> _pi = 3.141592;<\/td><td><\/td><td>-3.4028235E+38<\/td><td>3.4028235E+38<\/td><td>4 (32)<\/td><\/tr><tr><td style=\"color:#fcb900\"><strong><a href=\"https:\/\/www.arduino.cc\/reference\/fr\/language\/variables\/data-types\/double\/\">double<\/a><\/strong><\/td><td>Sur Arduino Uno, <br>\u00e9quivalent \u00e0 <em><strong>float<\/strong><\/em><\/td><td><\/td><td>-3.4028235E+38<\/td><td>3.4028235E+38<\/td><td>4 (32)<\/td><\/tr><tr><td><\/td><td><\/td><td><\/td><td><\/td><td><\/td><td><\/td><\/tr><\/tbody><\/table><figcaption>Tableau des types de variables sous Arduino C++<\/figcaption><\/div>\n\n\n\n<p>Cette notation est aussi support\u00e9e:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><code>uint8_t<\/code> est un <strong>type entier non sign\u00e9 de 8 bits<\/strong> (<strong>unsigned integer of 8 bits<\/strong>).<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>uint<\/code><\/strong> \u2192 \u00ab\u00a0unsigned integer\u00a0\u00bb (entier non sign\u00e9).<\/li>\n\n\n\n<li><strong><code>8<\/code><\/strong> \u2192 Indique que la taille est de <strong>8 bits<\/strong> (1 octet).<\/li>\n\n\n\n<li><strong><code>_t<\/code><\/strong> \u2192 Indique qu&rsquo;il s&rsquo;agit d&rsquo;un <strong>type d\u00e9fini<\/strong> (convention POSIX).<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading has-text-color\" style=\"color:#245f48\">8 &#8211; Les chaines de caract\u00e8res<\/h2>\n\n\n\n<p>char tableau[] = \u00ab\u00a0une suite de char\u2026\u00a0\u00bb;<\/p>\n\n\n\n<p>char buffer[40];<\/p>\n\n\n\n<p>sprintf(buffer, \u00ab\u00a0i = %d, j = %d\u00a0\u00bb, i, j);  \/\/ Voir snprintf()<\/p>\n\n\n\n<p>String chaine = \u00ab\u00a0Utilisation d\u2019une classe de programmation.\u00a0\u00bb;  \/\/ Gourmand en m\u00e9moire<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading has-text-color\" style=\"color:#9d2626\">9 &#8211; Quiz<\/h2>\n\n\n<script>\n                            if (window.qmn_quiz_data === undefined) {\n                                    window.qmn_quiz_data = new Object();\n                            }\n                    <\/script><script>window.qmn_quiz_data[\"1\"] = {\"quiz_id\":\"1\",\"quiz_name\":\"Quiz-sur-les-variables\",\"disable_answer\":\"0\",\"ajax_show_correct\":\"0\",\"progress_bar\":\"0\",\"contact_info_location\":\"0\",\"qpages\":{\"1\":{\"id\":\"1\",\"quizID\":\"1\",\"pagekey\":\"AhWimn7B\",\"hide_prevbtn\":\"0\"}},\"skip_validation_time_expire\":\"0\",\"timer_limit_val\":0,\"disable_scroll_next_previous_click\":\"0\",\"disable_scroll_on_result\":0,\"disable_first_page\":\"0\",\"enable_result_after_timer_end\":\"0\",\"enable_quick_result_mc\":\"0\",\"end_quiz_if_wrong\":\"0\",\"form_disable_autofill\":\"0\",\"disable_mathjax\":0,\"enable_quick_correct_answer_info\":\"0\",\"quick_result_correct_answer_text\":\"Correct! You have selected correct answer.\",\"quick_result_wrong_answer_text\":\"Wrong! You have selected wrong answer.\",\"quiz_processing_message\":\"\",\"quiz_limit_choice\":\"Limit of choice is reached.\",\"not_allow_after_expired_time\":\"\",\"scheduled_time_end\":false,\"error_messages\":{\"email_error_text\":\"Not a valid e-mail address!\",\"number_error_text\":\"This field must be a number!\",\"incorrect_error_text\":\"The entered text is not correct!\",\"empty_error_text\":\"Please complete all required fields!\",\"url_error_text\":\"The entered URL is not valid!\",\"minlength_error_text\":\"Required atleast %minlength% characters.\",\"maxlength_error_text\":\"Maximum %maxlength% characters allowed.\",\"recaptcha_error_text\":\"ReCaptcha is missing\"},\"first_page\":false}\n                    <\/script><div class='qsm-quiz-container qsm-quiz-container-1 qmn_quiz_container mlw_qmn_quiz  quiz_theme_default  '>\n\t\t\t\t\t\t\t\t<form name=\"quizForm1\" id=\"quizForm1\" action=\"\/420-1c4\/index.php\/wp-json\/wp\/v2\/pages\/1849\" method=\"POST\" class=\"qsm-quiz-form qmn_quiz_form mlw_quiz_form\" novalidate enctype=\"multipart\/form-data\">\n\t\t\t\t<input type=\"hidden\" name=\"qsm_hidden_questions\" id=\"qsm_hidden_questions\" value=\"\">\n\t\t\t\t<input type=\"hidden\" name=\"qsm_nonce\" id=\"qsm_nonce_1\" value=\"fc9998669f\">\n\t\t\t\t<input type=\"hidden\" name=\"qsm_unique_key\" id=\"qsm_unique_key_1\" value=\"69fca506ce3f0\">\n\t\t\t\t<div id=\"mlw_error_message\" class=\"qsm-error-message qmn_error_message_section\"><\/div>\n\t\t\t\t<span id=\"mlw_top_of_quiz\"><\/span>\n\t\t\t\t\t\t\t<section class=\"qsm-page \">\n\t\t\t\t\t\t\t\t<div class=\"quiz_section quiz_begin\">\n\t\t\t\t\t\t<div class='qsm-before-message mlw_qmn_message_before'>\n\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"quiz_section qsm-question-wrapper question-type-4 question-section-id-1 \" data-qid=\"1\">\n\t\t\t\t\t\t<div class='mlw_qmn_new_question'>1 &#8211; S\u00e9lectionnez les noms de variables valides <\/div>\n\t\t\t<div class='mlw_qmn_question  qsm_remove_bold' >\n\t\t<p><\/p>\n\t<\/div>\n\t\t<fieldset>\n\t\t<legend><\/legend>\n\t<div class=\"qmn_check_answers \">\n\t\t\t\t\t\t\t<div class=\"qsm_check_answer  mrq_checkbox_class\">\n\t\t\t\t\t\t<input type=\"checkbox\" class=\"qsm-multiple-response-input\"  name=\"question1[]\" id=\"question1_1\" value=\"0\" \/>\n\t\t\t\t\t\t<label class=\"qsm-input-label\" for=\"question1_1\">\n\t\t\t\t\t\t\tuneVariable\t\t\t\t\t\t<\/label>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"qsm_check_answer  mrq_checkbox_class\">\n\t\t\t\t\t\t<input type=\"checkbox\" class=\"qsm-multiple-response-input\"  name=\"question1[]\" id=\"question1_2\" value=\"1\" \/>\n\t\t\t\t\t\t<label class=\"qsm-input-label\" for=\"question1_2\">\n\t\t\t\t\t\t\tpetit poulet\t\t\t\t\t\t<\/label>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"qsm_check_answer  mrq_checkbox_class\">\n\t\t\t\t\t\t<input type=\"checkbox\" class=\"qsm-multiple-response-input\"  name=\"question1[]\" id=\"question1_3\" value=\"2\" \/>\n\t\t\t\t\t\t<label class=\"qsm-input-label\" for=\"question1_3\">\n\t\t\t\t\t\t\t1joueur\t\t\t\t\t\t<\/label>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"qsm_check_answer  mrq_checkbox_class\">\n\t\t\t\t\t\t<input type=\"checkbox\" class=\"qsm-multiple-response-input\"  name=\"question1[]\" id=\"question1_4\" value=\"3\" \/>\n\t\t\t\t\t\t<label class=\"qsm-input-label\" for=\"question1_4\">\n\t\t\t\t\t\t\t_uneChaise\t\t\t\t\t\t<\/label>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"qsm_check_answer  mrq_checkbox_class\">\n\t\t\t\t\t\t<input type=\"checkbox\" class=\"qsm-multiple-response-input\"  name=\"question1[]\" id=\"question1_5\" value=\"4\" \/>\n\t\t\t\t\t\t<label class=\"qsm-input-label\" for=\"question1_5\">\n\t\t\t\t\t\t\tUNCompteur99\t\t\t\t\t\t<\/label>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t<\/fieldset>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"quiz_section qsm-question-wrapper question-type-0 question-section-id-2 \" data-qid=\"2\">\n\t\t\t\t\t\t<div class='mlw_qmn_new_question'>2 &#8211; La variable &#039;uneVariable&#039; permet de repr\u00e9senter un nombre entier n\u00e9gatif <\/div>\n\t\t\t<div class='mlw_qmn_question  qsm_remove_bold' >\n\t\t<p><pre><strong>unsigned int uneVariable;<\/strong><\/pre><\/p>\n\t<\/div>\n\t\t<fieldset>\n\t\t<legend><\/legend>\n\t<div class='qmn_radio_answers '>\n\t\t\t\t\t\t\t\t<div class=\"qmn_mc_answer_wrap  mrq_checkbox_class\" id=\"question2-1 \">\n\t\t\t\t\t\t\t\t\t\t\t<input type='radio' class='qmn_quiz_radio qmn-multiple-choice-input ' name=\"question2\" id=\"question2_1\" value=\"0\" \/>\n\t\t\t\t\t<label class=\"qsm-input-label\" for=\"question2_1\">\n\t\t\t\t\tVrai\t\t\t\t\t<\/label>\n\t\t\t\t\t \t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"qmn_mc_answer_wrap  mrq_checkbox_class\" id=\"question2-2 \">\n\t\t\t\t\t\t\t\t\t\t\t<input type='radio' class='qmn_quiz_radio qmn-multiple-choice-input ' name=\"question2\" id=\"question2_2\" value=\"1\" \/>\n\t\t\t\t\t<label class=\"qsm-input-label\" for=\"question2_2\">\n\t\t\t\t\tFaux\t\t\t\t\t<\/label>\n\t\t\t\t\t \t\t\t\t<\/div>\n\t\t\t\t\t \t\t\t<label style=\"display: none !important;\" for=\"question2_none\">None<\/label>\n\t\t\t<input type=\"radio\" style=\"display: none;\" name=\"question2\" id=\"question2_none\" checked=\"checked\" value=\"\" \/>\n\t\t\t\t<\/div>\n\t<\/fieldset>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"quiz_section qsm-question-wrapper question-type-0 question-section-id-3 \" data-qid=\"3\">\n\t\t\t\t\t\t<div class='mlw_qmn_new_question'>3 &#8211; La variable suivante occupera 16 bits en m\u00e9moire <\/div>\n\t\t\t<div class='mlw_qmn_question  qsm_remove_bold' >\n\t\t<p><pre><strong>char unCaratere;<\/strong><\/pre><\/p>\n\t<\/div>\n\t\t<fieldset>\n\t\t<legend><\/legend>\n\t<div class='qmn_radio_answers '>\n\t\t\t\t\t\t\t\t<div class=\"qmn_mc_answer_wrap  mrq_checkbox_class\" id=\"question3-1 \">\n\t\t\t\t\t\t\t\t\t\t\t<input type='radio' class='qmn_quiz_radio qmn-multiple-choice-input ' name=\"question3\" id=\"question3_1\" value=\"0\" \/>\n\t\t\t\t\t<label class=\"qsm-input-label\" for=\"question3_1\">\n\t\t\t\t\tVrai\t\t\t\t\t<\/label>\n\t\t\t\t\t \t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"qmn_mc_answer_wrap  mrq_checkbox_class\" id=\"question3-2 \">\n\t\t\t\t\t\t\t\t\t\t\t<input type='radio' class='qmn_quiz_radio qmn-multiple-choice-input ' name=\"question3\" id=\"question3_2\" value=\"1\" \/>\n\t\t\t\t\t<label class=\"qsm-input-label\" for=\"question3_2\">\n\t\t\t\t\tFaux\t\t\t\t\t<\/label>\n\t\t\t\t\t \t\t\t\t<\/div>\n\t\t\t\t\t \t\t\t<label style=\"display: none !important;\" for=\"question3_none\">None<\/label>\n\t\t\t<input type=\"radio\" style=\"display: none;\" name=\"question3\" id=\"question3_none\" checked=\"checked\" value=\"\" \/>\n\t\t\t\t<\/div>\n\t<\/fieldset>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"quiz_section qsm-question-wrapper question-type-4 question-section-id-4 \" data-qid=\"4\">\n\t\t\t\t\t\t<div class='mlw_qmn_new_question'>4 &#8211; S\u00e9lectionnez les d\u00e9clarations invalides <\/div>\n\t\t\t<div class='mlw_qmn_question  qsm_remove_bold' >\n\t\t<p><\/p>\n\t<\/div>\n\t\t<fieldset>\n\t\t<legend><\/legend>\n\t<div class=\"qmn_check_answers \">\n\t\t\t\t\t\t\t<div class=\"qsm_check_answer  mrq_checkbox_class\">\n\t\t\t\t\t\t<input type=\"checkbox\" class=\"qsm-multiple-response-input\"  name=\"question4[]\" id=\"question4_1\" value=\"0\" \/>\n\t\t\t\t\t\t<label class=\"qsm-input-label\" for=\"question4_1\">\n\t\t\t\t\t\t\tunsigned char variable1;\t\t\t\t\t\t<\/label>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"qsm_check_answer  mrq_checkbox_class\">\n\t\t\t\t\t\t<input type=\"checkbox\" class=\"qsm-multiple-response-input\"  name=\"question4[]\" id=\"question4_2\" value=\"1\" \/>\n\t\t\t\t\t\t<label class=\"qsm-input-label\" for=\"question4_2\">\n\t\t\t\t\t\t\tbyte unOctet;\t\t\t\t\t\t<\/label>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"qsm_check_answer  mrq_checkbox_class\">\n\t\t\t\t\t\t<input type=\"checkbox\" class=\"qsm-multiple-response-input\"  name=\"question4[]\" id=\"question4_3\" value=\"2\" \/>\n\t\t\t\t\t\t<label class=\"qsm-input-label\" for=\"question4_3\">\n\t\t\t\t\t\t\tdouble unNombreEntier;\t\t\t\t\t\t<\/label>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"qsm_check_answer  mrq_checkbox_class\">\n\t\t\t\t\t\t<input type=\"checkbox\" class=\"qsm-multiple-response-input\"  name=\"question4[]\" id=\"question4_4\" value=\"3\" \/>\n\t\t\t\t\t\t<label class=\"qsm-input-label\" for=\"question4_4\">\n\t\t\t\t\t\t\tint i,y;\t\t\t\t\t\t<\/label>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t<\/fieldset>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"quiz_section qsm-question-wrapper question-type-4 question-section-id-5 \" data-qid=\"5\">\n\t\t\t\t\t\t<div class='mlw_qmn_new_question'>5 &#8211; S\u00e9lectionnez les d\u00e9clarations qui occuperont 1 octet en m\u00e9moire <\/div>\n\t\t\t<div class='mlw_qmn_question  qsm_remove_bold' >\n\t\t<p><\/p>\n\t<\/div>\n\t\t<fieldset>\n\t\t<legend><\/legend>\n\t<div class=\"qmn_check_answers \">\n\t\t\t\t\t\t\t<div class=\"qsm_check_answer  mrq_checkbox_class\">\n\t\t\t\t\t\t<input type=\"checkbox\" class=\"qsm-multiple-response-input\"  name=\"question5[]\" id=\"question5_1\" value=\"0\" \/>\n\t\t\t\t\t\t<label class=\"qsm-input-label\" for=\"question5_1\">\n\t\t\t\t\t\t\tint unOctet;\t\t\t\t\t\t<\/label>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"qsm_check_answer  mrq_checkbox_class\">\n\t\t\t\t\t\t<input type=\"checkbox\" class=\"qsm-multiple-response-input\"  name=\"question5[]\" id=\"question5_2\" value=\"1\" \/>\n\t\t\t\t\t\t<label class=\"qsm-input-label\" for=\"question5_2\">\n\t\t\t\t\t\t\tbyte nbJoueur;\t\t\t\t\t\t<\/label>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"qsm_check_answer  mrq_checkbox_class\">\n\t\t\t\t\t\t<input type=\"checkbox\" class=\"qsm-multiple-response-input\"  name=\"question5[]\" id=\"question5_3\" value=\"2\" \/>\n\t\t\t\t\t\t<label class=\"qsm-input-label\" for=\"question5_3\">\n\t\t\t\t\t\t\tbool VraiOuFaux;\t\t\t\t\t\t<\/label>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"qsm_check_answer  mrq_checkbox_class\">\n\t\t\t\t\t\t<input type=\"checkbox\" class=\"qsm-multiple-response-input\"  name=\"question5[]\" id=\"question5_4\" value=\"3\" \/>\n\t\t\t\t\t\t<label class=\"qsm-input-label\" for=\"question5_4\">\n\t\t\t\t\t\t\tshort int tresPetitNombre=255;\t\t\t\t\t\t<\/label>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t<\/fieldset>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"quiz_section qsm-question-wrapper question-type-0 question-section-id-6 \" data-qid=\"6\">\n\t\t\t\t\t\t<div class='mlw_qmn_new_question'>6 &#8211; Sur Arduino UNO, le type &#039;double&#039; propose une pr\u00e9cision plus grande que &#039;float&#039;. <\/div>\n\t\t\t<div class='mlw_qmn_question  qsm_remove_bold' >\n\t\t<p><\/p>\n\t<\/div>\n\t\t<fieldset>\n\t\t<legend><\/legend>\n\t<div class='qmn_radio_answers '>\n\t\t\t\t\t\t\t\t<div class=\"qmn_mc_answer_wrap  mrq_checkbox_class\" id=\"question6-1 \">\n\t\t\t\t\t\t\t\t\t\t\t<input type='radio' class='qmn_quiz_radio qmn-multiple-choice-input ' name=\"question6\" id=\"question6_1\" value=\"0\" \/>\n\t\t\t\t\t<label class=\"qsm-input-label\" for=\"question6_1\">\n\t\t\t\t\tVrai\t\t\t\t\t<\/label>\n\t\t\t\t\t \t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"qmn_mc_answer_wrap  mrq_checkbox_class\" id=\"question6-2 \">\n\t\t\t\t\t\t\t\t\t\t\t<input type='radio' class='qmn_quiz_radio qmn-multiple-choice-input ' name=\"question6\" id=\"question6_2\" value=\"1\" \/>\n\t\t\t\t\t<label class=\"qsm-input-label\" for=\"question6_2\">\n\t\t\t\t\tFaux\t\t\t\t\t<\/label>\n\t\t\t\t\t \t\t\t\t<\/div>\n\t\t\t\t\t \t\t\t<label style=\"display: none !important;\" for=\"question6_none\">None<\/label>\n\t\t\t<input type=\"radio\" style=\"display: none;\" name=\"question6\" id=\"question6_none\" checked=\"checked\" value=\"\" \/>\n\t\t\t\t<\/div>\n\t<\/fieldset>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"quiz_section qsm-question-wrapper question-type-0 question-section-id-7 \" data-qid=\"7\">\n\t\t\t\t\t\t<div class='mlw_qmn_new_question'>7 &#8211; D\u00e9finissez une variable qui permet de stocker le nombre &#039;4000000000&#039; <\/div>\n\t\t\t<div class='mlw_qmn_question  qsm_remove_bold' >\n\t\t<p><\/p>\n\t<\/div>\n\t\t<fieldset>\n\t\t<legend><\/legend>\n\t<div class='qmn_radio_answers '>\n\t\t\t\t\t\t\t\t<div class=\"qmn_mc_answer_wrap  mrq_checkbox_class\" id=\"question7-1 \">\n\t\t\t\t\t\t\t\t\t\t\t<input type='radio' class='qmn_quiz_radio qmn-multiple-choice-input ' name=\"question7\" id=\"question7_1\" value=\"0\" \/>\n\t\t\t\t\t<label class=\"qsm-input-label\" for=\"question7_1\">\n\t\t\t\t\tlong int oufQueCestUnGrandNombre;\t\t\t\t\t<\/label>\n\t\t\t\t\t \t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"qmn_mc_answer_wrap  mrq_checkbox_class\" id=\"question7-2 \">\n\t\t\t\t\t\t\t\t\t\t\t<input type='radio' class='qmn_quiz_radio qmn-multiple-choice-input ' name=\"question7\" id=\"question7_2\" value=\"1\" \/>\n\t\t\t\t\t<label class=\"qsm-input-label\" for=\"question7_2\">\n\t\t\t\t\tint oufQueCestUnGrandNombre;\t\t\t\t\t<\/label>\n\t\t\t\t\t \t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"qmn_mc_answer_wrap  mrq_checkbox_class\" id=\"question7-3 \">\n\t\t\t\t\t\t\t\t\t\t\t<input type='radio' class='qmn_quiz_radio qmn-multiple-choice-input ' name=\"question7\" id=\"question7_3\" value=\"2\" \/>\n\t\t\t\t\t<label class=\"qsm-input-label\" for=\"question7_3\">\n\t\t\t\t\tvery long int oufQueCestUnGrandNombre;\t\t\t\t\t<\/label>\n\t\t\t\t\t \t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"qmn_mc_answer_wrap  mrq_checkbox_class\" id=\"question7-4 \">\n\t\t\t\t\t\t\t\t\t\t\t<input type='radio' class='qmn_quiz_radio qmn-multiple-choice-input ' name=\"question7\" id=\"question7_4\" value=\"3\" \/>\n\t\t\t\t\t<label class=\"qsm-input-label\" for=\"question7_4\">\n\t\t\t\t\tAucune de ces r\u00e9ponses\t\t\t\t\t<\/label>\n\t\t\t\t\t \t\t\t\t<\/div>\n\t\t\t\t\t \t\t\t<label style=\"display: none !important;\" for=\"question7_none\">None<\/label>\n\t\t\t<input type=\"radio\" style=\"display: none;\" name=\"question7\" id=\"question7_none\" checked=\"checked\" value=\"\" \/>\n\t\t\t\t<\/div>\n\t<\/fieldset>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"quiz_section qsm-question-wrapper question-type-0 question-section-id-8 \" data-qid=\"8\">\n\t\t\t\t\t\t<div class='mlw_qmn_new_question'>8 &#8211; Le type &#039;char&#039; permet de repr\u00e9senter un nombre entre -128 et 128. <\/div>\n\t\t\t<div class='mlw_qmn_question  qsm_remove_bold' >\n\t\t<p><\/p>\n\t<\/div>\n\t\t<fieldset>\n\t\t<legend><\/legend>\n\t<div class='qmn_radio_answers '>\n\t\t\t\t\t\t\t\t<div class=\"qmn_mc_answer_wrap  mrq_checkbox_class\" id=\"question8-1 \">\n\t\t\t\t\t\t\t\t\t\t\t<input type='radio' class='qmn_quiz_radio qmn-multiple-choice-input ' name=\"question8\" id=\"question8_1\" value=\"0\" \/>\n\t\t\t\t\t<label class=\"qsm-input-label\" for=\"question8_1\">\n\t\t\t\t\tVrai\t\t\t\t\t<\/label>\n\t\t\t\t\t \t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"qmn_mc_answer_wrap  mrq_checkbox_class\" id=\"question8-2 \">\n\t\t\t\t\t\t\t\t\t\t\t<input type='radio' class='qmn_quiz_radio qmn-multiple-choice-input ' name=\"question8\" id=\"question8_2\" value=\"1\" \/>\n\t\t\t\t\t<label class=\"qsm-input-label\" for=\"question8_2\">\n\t\t\t\t\tFaux\t\t\t\t\t<\/label>\n\t\t\t\t\t \t\t\t\t<\/div>\n\t\t\t\t\t \t\t\t<label style=\"display: none !important;\" for=\"question8_none\">None<\/label>\n\t\t\t<input type=\"radio\" style=\"display: none;\" name=\"question8\" id=\"question8_none\" checked=\"checked\" value=\"\" \/>\n\t\t\t\t<\/div>\n\t<\/fieldset>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"quiz_section qsm-question-wrapper question-type-0 question-section-id-9 \" data-qid=\"9\">\n\t\t\t\t\t\t<div class='mlw_qmn_new_question'>9 &#8211; Le type &#039;unsigned char&#039; permet de repr\u00e9senter un nombre entre 0 et 255. <\/div>\n\t\t\t<div class='mlw_qmn_question  qsm_remove_bold' >\n\t\t<p><\/p>\n\t<\/div>\n\t\t<fieldset>\n\t\t<legend><\/legend>\n\t<div class='qmn_radio_answers '>\n\t\t\t\t\t\t\t\t<div class=\"qmn_mc_answer_wrap  mrq_checkbox_class\" id=\"question9-1 \">\n\t\t\t\t\t\t\t\t\t\t\t<input type='radio' class='qmn_quiz_radio qmn-multiple-choice-input ' name=\"question9\" id=\"question9_1\" value=\"0\" \/>\n\t\t\t\t\t<label class=\"qsm-input-label\" for=\"question9_1\">\n\t\t\t\t\tVrai\t\t\t\t\t<\/label>\n\t\t\t\t\t \t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"qmn_mc_answer_wrap  mrq_checkbox_class\" id=\"question9-2 \">\n\t\t\t\t\t\t\t\t\t\t\t<input type='radio' class='qmn_quiz_radio qmn-multiple-choice-input ' name=\"question9\" id=\"question9_2\" value=\"1\" \/>\n\t\t\t\t\t<label class=\"qsm-input-label\" for=\"question9_2\">\n\t\t\t\t\tFaux\t\t\t\t\t<\/label>\n\t\t\t\t\t \t\t\t\t<\/div>\n\t\t\t\t\t \t\t\t<label style=\"display: none !important;\" for=\"question9_none\">None<\/label>\n\t\t\t<input type=\"radio\" style=\"display: none;\" name=\"question9\" id=\"question9_none\" checked=\"checked\" value=\"\" \/>\n\t\t\t\t<\/div>\n\t<\/fieldset>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<\/section>\n\t\t\t\t\t<input type=\"hidden\" name=\"qmn_question_list\" value=\"1Q2Q3Q4Q5Q6Q7Q8Q9Q\" \/>\n\t\t\t\t\t\t\t<div id=\"mlw_error_message_bottom\" class=\"qsm-error-message qmn_error_message_section\"><\/div>\n\t\t\t\t\t<input type=\"hidden\" name=\"qmn_all_questions_count\" id=\"qmn_all_questions_count\" value=\"9\" \/>\n\t\t\t\t\t<input type=\"hidden\" name=\"total_questions\" id=\"total_questions\" value=\"9\" \/>\n\t\t\t\t\t<input type=\"hidden\" name=\"timer\" id=\"timer\" value=\"0\" \/>\n\t\t\t\t\t<input type=\"hidden\" name=\"timer_ms\" id=\"timer_ms\" value=\"0\"\/>\n\t\t\t\t\t<input type=\"hidden\" class=\"qmn_quiz_id\" name=\"qmn_quiz_id\" id=\"qmn_quiz_id\" value=\"1\" \/>\n\t\t\t\t\t<input type='hidden' name='complete_quiz' value='confirmation' \/>\n\t\t\t\t\t\t\t\t\t<\/form>\n\t\t<\/div>\n\t\t<div style=\"display: none;\" class=\"qsm-popup qsm-popup-slide\" id=\"modal-4\" aria-hidden=\"false\"><div class=\"qsm-popup__overlay\" tabindex=\"-1\" data-micromodal-close=\"\"><div class=\"qsm-popup__container qmn_quiz_container\" role=\"dialog\" aria-modal=\"true\"><div class=\"qsm-popup__content\"><img decoding=\"async\" src=\"https:\/\/ve2cuy.com\/420-1c4\/wp-content\/plugins\/quiz-master-next\/assets\/clock.png\" alt=\"clock.png\"\/><p class=\"qsm-time-up-text\"> Time&rsquo;s up<\/p><\/div><footer class=\"qsm-popup__footer\"><button class=\"qsm-popup-secondary-button qmn_btn\" data-micromodal-close=\"\" aria-label=\"Close this dialog window\" onclick=\"location.reload();\">Cancel<\/button><\/footer><\/div><\/div><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"has-text-align-right has-cyan-bluish-gray-color has-text-color\">Document par Alain Boudreault &#8211; aka ve2cuy &#8211; version 2022.06.19.02<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Contenu 1 &#8211; Le concept de variable Une variable est un objet rep\u00e9r\u00e9 par son nom, pouvant contenir des donn\u00e9es, qui pourront \u00eatre modifi\u00e9es lors de l&rsquo;ex\u00e9cution du programme. Les variables en langage C++ sont&nbsp;typ\u00e9es, c&rsquo;est-\u00e0-dire que les donn\u00e9es contenues dans celles-ci poss\u00e8dent un type, ainsi elles sont donc stock\u00e9es \u00e0 une adresse m\u00e9moire et [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"ub_ctt_via":"","footnotes":""},"class_list":["post-1849","page","type-page","status-publish","hentry"],"featured_image_src":null,"_links":{"self":[{"href":"https:\/\/ve2cuy.com\/420-1c4\/index.php\/wp-json\/wp\/v2\/pages\/1849","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ve2cuy.com\/420-1c4\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ve2cuy.com\/420-1c4\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ve2cuy.com\/420-1c4\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ve2cuy.com\/420-1c4\/index.php\/wp-json\/wp\/v2\/comments?post=1849"}],"version-history":[{"count":27,"href":"https:\/\/ve2cuy.com\/420-1c4\/index.php\/wp-json\/wp\/v2\/pages\/1849\/revisions"}],"predecessor-version":[{"id":3319,"href":"https:\/\/ve2cuy.com\/420-1c4\/index.php\/wp-json\/wp\/v2\/pages\/1849\/revisions\/3319"}],"wp:attachment":[{"href":"https:\/\/ve2cuy.com\/420-1c4\/index.php\/wp-json\/wp\/v2\/media?parent=1849"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}