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.