Write a program to determine the ranges of char, short, Int, and long variables, both signed and unsigned, by printing appropriate values from standard headers and by direct computation. harder if you compute them: Determine the ranges of the various floating-point types.
[Codes = C]
# Include
# Include # Include
int main (void)
{< br> printf ("size of char % d \ n", char_bit );
printf ("size of char max % d \ n", char_max);
printf ("size of char min % d \ n", char_min );
printf ("size of int min % d \ n", int_min);
printf ("size of int max % d \ n", int_max );
printf ("size of long min % LD \ n", long_min);/* RB */
printf ("size of long max % LD \ n ", long_max);/* RB */
printf ("size of short min % d \ n", shrt_min );
printf ("size of short max % d \ n", shrt_max);
printf ("size of unsigned char % u \ n", uchar_max ); /* SF */
printf ("size of unsigned long % lu \ n", ulong_max ); /* RB */
printf ("size of unsigned int % u \ n", uint_max ); /* RB */
printf ("size of unsigned short % u \ n", ushrt_max);/* SF */
exit (0);
}[/codes]