C Program Print Size Of Different Data Types :
//C Program Print Size Of Different Data Types
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
printf("\n Type Size and bytes");
printf("\n Character= %d",sizeof(char));
printf("\n Integer= %d",sizeof(int));
printf("\n Long int= %d",sizeof(long int));
printf("\n Float= %d",sizeof(float));
printf("\n Double= %d",sizeof(double));
printf("\n Long double= %d",sizeof(long double));
getch();
}
OUTPUT#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
printf("\n Type Size and bytes");
printf("\n Character= %d",sizeof(char));
printf("\n Integer= %d",sizeof(int));
printf("\n Long int= %d",sizeof(long int));
printf("\n Float= %d",sizeof(float));
printf("\n Double= %d",sizeof(double));
printf("\n Long double= %d",sizeof(long double));
getch();
}
No comments:
Post a Comment