C Program to find size of int char float double

Simple C program to find size of int, char, float and double. To find size of primary data type, we use sizeof() function.
#include<stdio.h>
int main()
{
 printf("Size of int = %d\n",sizeof(int));
 printf("Size of char = %d\n",sizeof(char));
 printf("Size of float = %d\n",sizeof(float));
 printf("Size of double = %d\n",sizeof(double));
 return 0;
}


Popular posts from this blog