sizeof_variousΒΆ

sizeof_various.c


#include<stdio.h>
int main(int argc, char *argv[])
{
    int i=10;
    char c='a';
    float j=1.0;
    printf("The size of int is %zu\n", sizeof i);
    printf("The size of char is %zu\n", sizeof c);
    printf("The size of float is %zu\n", sizeof j);
}

Comments by Disqus