Documentos de Académico
Documentos de Profesional
Documentos de Cultura
2.1.1. Enteros
Sugerencia
int main()
{
Preguntas de autoevaluación
1.
o Verdadero
o Falso
i = j;
}
o Verdadero
o Falso
o Verdadero
o Falso
#define SIZE 6
char a = 'A';
char b[SIZE] = "hello";
Sugerencia
Preguntas de autoevaluación
o Verdadero
o Falso
o Verdadero
o Falso
3.
o Verdadero
o Falso
float a = 3.5;
double b = -5.4e-12;
long double c = 3.54e320;
Sugerencia
2.1.4. Tablas
int table[SIZE_TABLE];
short st[SIZE_SHORT] = { 1, 2, 3, 4, 5 };
long lt[SIZE_LONG] = { 20, 30, 40};
char name[SIZE_NAME];
int matrix[MATRIX_A][MATRIX_B];
long squarematrix[COMMON_SIZE][COMMON_SIZE];
char soup[COMMON_SIZE][COMMON_SIZE];
Sugerencia
Tamaño (bytes
Tipo
)
char, unsigned char 1
short int, unsigned short int 2
int, unsigned int, long int, unsigned
4
long int
float 4
Tamaño (bytes
Tipo
)
double 8
long double 12