Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende Práctica de Sizeof | Datos
C Básico

book
Práctica de Sizeof

Determinación del Tamaño en Bytes del Tipo de Dato int

main.c

main.c

copy
#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

#include <stdio.h>

int main()
{
printf("Size of short type is %d bytes\n", sizeof(short));

return 0;
}
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 2. Capítulo 9
single

single

#include <stdio.h>

int main()
{
printf("Size of short type is %d bytes\n", ___(___));

return 0;
}

Pregunte a AI

expand

Pregunte a AI

ChatGPT

Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla

We use cookies to make your experience better!
some-alt