Develop a C program to find the size of char, int, float and double data type occupied in memory by C compiler using sizeof() operator

Code

#include<stdio.h>
int main()
{
printf("Size of char: %ld byte\n",sizeof(char));
printf("Size of int: %ld bytes\n",sizeof(int));
printf("Size of float: %ld bytes\n",sizeof(float));
printf("Size of double: %ld bytes\n", sizeof(double));
return 0;
}
Output

cool, now try in your Computer