C program to print the size of different data types

Program

#include<stdio.h>
#include<conio.h>

void main()
{
clrscr();
printf(“TypettttSize (bytes)”);
printf(“nCharacterttt    %d”,sizeof(char));
printf(“nIntegertttt    %d”,sizeof(int));
printf(“nLong intttt    %d”,sizeof(long int));
printf(“nFloattttt    %d”,sizeof(float));
printf(“nDoubletttt    %d”,sizeof(double));
printf(“nLong doublettt    %d”,sizeof(long double));
getch();
}

Output

C program to print the size of different data types

DURGESH

I Love python, so I like machine learning a Lot and on the other hand, I like building apps and fun games I post blogs on my website for Tech enthusiast to learn and Share Information With The World.

Leave a Reply

Your email address will not be published. Required fields are marked *

13 + thirteen =

Recent Content