6. WAP to calculate size of datatypes
#include<stdio.h>
void
main()
{
printf("Size of char
:%ld\n",sizeof(char));
printf("Size of short int :%ld\n",sizeof(short int));
printf("Size of int
:%ld\n",sizeof(int));
printf("Size of long int
:%ld\n",sizeof(long int));
printf("Size of long long int
:%ld\n",sizeof(long long int));
}
Comments
Post a Comment