Skip to main content

How to check the size of data type(in byte) in c

#include<stdio.h>
int main()
{
printf("%d\n",sizeof(int));
printf("%d\n",sizeof(float));
printf("%d\n",sizeof(double));
printf("%d",sizeof(long double));
    return 0;
}

Comments