program to print size of int, float, double
variable.
#include<stdio.h>
#include<conio.h>
int main()
{
clrscr();
printf("Size of int is ->
%d\n",sizeof(int));
printf("Size of long is ->
%d\n",sizeof(float));
printf("Size of double is ->
%d\n",sizeof(double));
getch();
return 0;
}
Size of int
is -> 2
Size of long
is -> 4
Size of
double is -> 8
No comments:
Post a Comment