BUSCAR
INDICE
INDICE DEL TEMA
OBJETIVOS
TEORIA
PALABRAS RESERVADAS
GLOSARIO
EJERCICIOS
RESUELTOS
AUTOEVALUACION
PROPUESTOS
ERRORES
ESTADISTICAS
INICIO
FAQS
LINKS
RECOMIENDANOS
QUIENES SOMOS
MAPA DEL WEB
COLABORAR
Tema 2 Tipos de Variables
Teoría: Tipo "int" o entero
[signed|unsigned] [short|long] int <identificador>
[signed|unsigned] long [int] <identificador>
[signed|unsigned] short [int] <identificador>

Las variables enteras almacenan números enteros dentro de los límites del tamaño, que dependen de la plataforma del compilador, 16 o 32 bits.

Este tipo de variables es útil para almacenar números relativamente grandes, pero sin decimales.

Las declaraciones se realizan tal y como aparece a continuación:

[signed|unsigned] [short|long] int <identificador>
[signed|unsigned] long [int] <identificador>
[signed|unsigned] short [int] <identificador>