Sizeof

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

/* NAME: VARUN AGGARWAL

ROLL NO: 1 SEM-1 ICA DIV: A


SUBJECT: FOP
DEFINITION:

*/

#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:

*/

You might also like