Professional Documents
Culture Documents
Sizeof
Sizeof
Sizeof
*/
#include <conio.h>
#include <stdio.h>
int main()
{
clrscr();
printf("\nint :%d bytes \n",sizeof(int));
printf("\nlong :%d bytes\n", sizeof(long));
printf("\nchar :%d bytes \n",sizeof(char));
printf("\ndouble :%d bytes \n",sizeof(double));
printf("\nfloat :%d bytes \n",sizeof(float));
printf("\nshort :%d bytes \n",sizeof(short));
printf("\n1.55f :%d bytes \n",sizeof(1.55f));
printf("\n1.55l :%d bytes \n",sizeof(1.55L));
printf("\nHELLO :%d bytes \n",sizeof("HELLO"));
getch();
return 0;
}
/* OUTPUT:
*/