Write a program for print size of int, flot, char, double data types.

PROGRAM:-


#include <stdio.h>
int main()
{
int i_size;
float f_size;
char c_size;
double d_size;
printf(“INT SIZE %d.”,sizeof(i_size));
printf(“\nFLOAT SIZE %d.”,sizeof(f_size));
printf(“\nCHAR SIZE %d.”,sizeof(c_size));
printf(“\nDOUBLE SIZE %d.”,sizeof(d_size));

}

OUTPUT :-

Leave a Comment