Práctica de Sizeof
Determinación del Tamaño en Bytes del Tipo de Dato int
main.c
9
1
2
3
4
5
6
7
8
#include <stdio.h>
int main()
{
printf("Size of int type: %d bytes\n", sizeof(int));
return 0;
}
12345678#include <stdio.h> int main() { printf("Size of int type: %d bytes\n", sizeof(int)); return 0; }
Tarea
Swipe to start coding
Para averiguar cuántos bytes ocupa el tipo de dato short
, puedes emplear la función sizeof()
.
Solución
9
1
2
3
4
5
6
7
8
#include <stdio.h>
int main()
{
printf("Size of short type is %d bytes\n", sizeof(short));
return 0;
}
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 2. Capítulo 9
single
9
1
2
3
4
5
6
7
8
#include <stdio.h>
int main()
{
printf("Size of short type is %d bytes\n", ___(___));
return 0;
}
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla