{"id":104,"date":"2009-01-22T09:57:31","date_gmt":"2009-01-22T14:57:31","guid":{"rendered":"http:\/\/blog.espol.edu.ec\/programando\/?p=104"},"modified":"2009-01-22T09:57:31","modified_gmt":"2009-01-22T14:57:31","slug":"tipos-de-datos-en-el-lenguaje-c","status":"publish","type":"post","link":"https:\/\/blog.espol.edu.ec\/programando\/tipos-de-datos-en-el-lenguaje-c\/","title":{"rendered":"Tipos de datos en el lenguaje C"},"content":{"rendered":"<p>El lenguaje de programaci\u00f3n C maneja 3 tipos de datos primitivos que son: enteros, reales y car\u00e1cteres<\/p>\n<p>A continuaci\u00f3n se muestran los detalles de los tipos de datos soportados:<\/p>\n<p><strong>Enteros <\/strong><\/p>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"4\" width=\"492\">\n<col width=\"68\"><\/col>\n<col width=\"260\"><\/col>\n<col width=\"138\"><\/col>\n<tbody>\n<tr valign=\"top\">\n<td width=\"68\">\n<p align=\"center\"><strong>Nombre<\/strong><\/p>\n<\/td>\n<td width=\"260\">\n<p align=\"center\"><strong>Rango<\/strong><\/p>\n<\/td>\n<td width=\"138\">\n<p align=\"center\"><strong>Espacio en memoria<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"68\">\n<p align=\"center\">int<\/p>\n<\/td>\n<td width=\"260\">\n<p style=\"margin-bottom: 0cm\">M\u00e1ximo = 2,147,483,647<\/p>\n<p style=\"margin-bottom: 0cm\">M\u00ednimo = -2,147,483,648<\/p>\n<p style=\"margin-bottom: 0cm\"><strong>Unsigned (sin signo)<\/strong><\/p>\n<p style=\"margin-bottom: 0cm\">M\u00e1ximo = 4294967295<\/p>\n<p>M\u00ednimo = 0<\/td>\n<td width=\"138\">\n<p align=\"center\">4 bytes<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"68\">\n<p align=\"center\"><code><span style=\"font-family: Times New Roman,serif\"><span style=\"font-weight: normal\">short<\/span><\/span><\/code><\/p>\n<\/td>\n<td width=\"260\">M\u00e1ximo = 32767<\/p>\n<p>M\u00ednimo = -32768<\/p>\n<p style=\"margin-bottom: 0cm\"><strong>Unsigned (sin signo)<\/strong><\/p>\n<p>M\u00e1ximo = <span style=\"font-weight: normal\">65,535<\/span><\/p>\n<p style=\"font-weight: normal\">M\u00ednimo = 0<\/p>\n<\/td>\n<td width=\"138\">\n<p align=\"center\">2 bytes<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"68\">\n<p align=\"center\"><code><span style=\"font-family: Times New Roman,serif\"><span style=\"font-weight: normal\">long<\/span><\/span><\/code><code><strong> <\/strong><\/code><code><span style=\"font-family: Times New Roman,serif\"><span style=\"font-weight: normal\">long<\/span><\/span><\/code><\/p>\n<\/td>\n<td width=\"260\">\n<p style=\"margin-bottom: 0cm\">M\u00e1ximo = 9,223,372,036,854,775,807<\/p>\n<p style=\"margin-bottom: 0cm\">M\u00ednimo = 9,223,372,036,854,775,808<\/p>\n<p style=\"margin-bottom: 0cm\"><strong>Unsigned (sin signo)<\/strong><\/p>\n<p style=\"margin-bottom: 0cm\">M\u00e1ximo = 18,446,744,073,709,551,616<\/p>\n<p>M\u00ednimo = 0<\/td>\n<td width=\"138\">\n<p align=\"center\">8 bytes<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Reales (coma flotante)<\/strong><\/p>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"4\" width=\"492\">\n<col width=\"68\"><\/col>\n<col width=\"260\"><\/col>\n<col width=\"138\"><\/col>\n<tbody>\n<tr valign=\"top\">\n<td width=\"68\">\n<p align=\"center\"><strong>Nombre<\/strong><\/p>\n<\/td>\n<td width=\"260\">\n<p align=\"center\"><strong>Rango<\/strong><\/p>\n<\/td>\n<td width=\"138\">\n<p align=\"center\"><strong>Espacio en memoria<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"68\">\n<p align=\"center\">float<\/p>\n<\/td>\n<td width=\"260\">\n<p style=\"margin-bottom: 0cm\">Exponente M\u00e1ximo = 10^37<\/p>\n<p>Exponente M\u00ednimo =  10^-37<\/td>\n<td width=\"138\">\n<p align=\"center\">4 bytes<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"68\">\n<p align=\"center\"><code><span style=\"font-family: Times New Roman,serif\"><span style=\"font-weight: normal\">double<\/span><\/span><\/code><\/p>\n<\/td>\n<td width=\"260\">\n<p style=\"margin-bottom: 0cm\">Exponente M\u00e1ximo = 10^308<\/p>\n<p>Exponente M\u00ednimo =  10^-308<\/td>\n<td width=\"138\">\n<p align=\"center\">8 bytes<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Car\u00e1cteres <\/strong><\/p>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"4\" width=\"492\">\n<col width=\"68\"><\/col>\n<col width=\"260\"><\/col>\n<col width=\"138\"><\/col>\n<tbody>\n<tr valign=\"top\">\n<td width=\"68\">\n<p align=\"center\"><strong>Nombre<\/strong><\/p>\n<\/td>\n<td width=\"260\">\n<p align=\"center\"><strong>Rango<\/strong><\/p>\n<\/td>\n<td width=\"138\">\n<p align=\"center\"><strong>Espacio en memoria<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"68\">\n<p align=\"center\">char<\/p>\n<\/td>\n<td width=\"260\">\n<p style=\"margin-bottom: 0cm\">M\u00e1ximo = 255<\/p>\n<p>M\u00ednimo =  0<\/td>\n<td width=\"138\">\n<p align=\"center\">1 byte<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>El lenguaje de programaci\u00f3n C maneja 3 tipos de datos primitivos que son: enteros, reales y car\u00e1cteres A continuaci\u00f3n se muestran los detalles de los tipos de datos soportados: Enteros Nombre Rango Espacio en memoria int M\u00e1ximo = 2,147,483,647 M\u00ednimo = -2,147,483,648 Unsigned (sin signo) M\u00e1ximo = 4294967295 M\u00ednimo = 0 4 bytes short M\u00e1ximo [&hellip;]<\/p>\n","protected":false},"author":385,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[2722,3359],"tags":[3408,3409,3410,3411,3407,3412],"class_list":["post-104","post","type-post","status-publish","format-standard","hentry","category-aprende-a-programar","category-lenguaje-c","tag-char","tag-int","tag-long","tag-short","tag-tipos-de-datos","tag-unsigned"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blog.espol.edu.ec\/programando\/wp-json\/wp\/v2\/posts\/104","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.espol.edu.ec\/programando\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.espol.edu.ec\/programando\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.espol.edu.ec\/programando\/wp-json\/wp\/v2\/users\/385"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.espol.edu.ec\/programando\/wp-json\/wp\/v2\/comments?post=104"}],"version-history":[{"count":3,"href":"https:\/\/blog.espol.edu.ec\/programando\/wp-json\/wp\/v2\/posts\/104\/revisions"}],"predecessor-version":[{"id":120,"href":"https:\/\/blog.espol.edu.ec\/programando\/wp-json\/wp\/v2\/posts\/104\/revisions\/120"}],"wp:attachment":[{"href":"https:\/\/blog.espol.edu.ec\/programando\/wp-json\/wp\/v2\/media?parent=104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.espol.edu.ec\/programando\/wp-json\/wp\/v2\/categories?post=104"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.espol.edu.ec\/programando\/wp-json\/wp\/v2\/tags?post=104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}