//Program to check the size of built-in datatypes.
#include<stdio.h>
#include<conio.h>
void main()
{
int a,x,y,z,n;
float b;
char c;
double e;
clrscr();
x=sizeof (a);
y=sizeof (b);
z=sizeof (c);
n=sizeof (e);
printf(" size of intezer data type=%d",x);
printf("\n size of float data type=%d",y);
printf("\n size of character data type=%d",z);
printf("\n size of double data type=%d",n);
getch();
}
#include<stdio.h>
#include<conio.h>
void main()
{
int a,x,y,z,n;
float b;
char c;
double e;
clrscr();
x=sizeof (a);
y=sizeof (b);
z=sizeof (c);
n=sizeof (e);
printf(" size of intezer data type=%d",x);
printf("\n size of float data type=%d",y);
printf("\n size of character data type=%d",z);
printf("\n size of double data type=%d",n);
getch();
}