Program in 'C'
{
clrscr();
printf("CHAR BIT: %d\n",CHAR_BIT);
printf("CHAR MAX: %d\n",CHAR_MAX);
printf("CHAR MIN: %d\n",CHAR_MIN);
printf("Signed CHAR MAX: %d\n",SCHAR_MAX);
printf("Signed char MIN: %d\n",SCHAR_MIN);
printf("INT MAX: %d\n",INT_MAX);
printf("INT MIN: %d\n",INT_MIN);
printf("SHORT MAX: %d\n",SHRT_MAX);
printf("SHORT MIN: %d\n",SHRT_MIN);
printf("LONG MAX: %lu\n",LONG_MAX);
printf("LONG MIN: %d\n",LONG_MIN);
printf("UNSIGNED CHAR MAX: %d\n",UCHAR_MAX);
printf("LONG MAX: %lu\n",LONG_MAX);
printf("LONG MIN: %d\n",LONG_MIN);
printf("UNSIGNED INT MAX: %lu\n",UINT_MAX);
printf("UNSIGNED LONG MAX: %lu\n",ULONG_MAX);
printf("UNSIGNED SHORT MAX: %lu\n",USHRT_MAX);
getch();
}
No comments:
Post a Comment