#include <stdio.h>

int main(void) {
    char a_carattere;
    short int a_corto;
    int a;
    long int a_lungo;
    float f;
    double df;

    printf("char %d byte\n", (int)sizeof(a_carattere));
    printf("short int %d byte \n", (int)sizeof(a_corto));
    printf("int %d byte\n", (int)sizeof(a));
    printf("long int %d byte\n", (int)sizeof(a_lungo));
    printf("float %d byte\n", (int)sizeof(f));
    printf("double %d byte\n", (int)sizeof(df));
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: