C Program to Find Size of int, float, double and char

Example
#include<conio.h>
#include<stdio.h>
void main()
{
printf("Size of char: %d byte\n",sizeof(char));
printf("Size of int: %d bytes\n",sizeof(int));
printf("Size of float: %d bytes\n",sizeof(float));
printf("Size of double: %d bytes", sizeof(double));
getch();
}
 
Program Output

     Size of char: 1 byte
     Size of int: 4 bytes
     Size of float: 4 bytes
     Size of double: 8 bytes

English Hindi