integer and long max/min values
Richard Coleman
richardcoleman at mindspring.com
Fri Nov 21 07:16:35 PST 2003
Jay Sern Liew wrote:
> how do I find out the maximum (and minimum) value a long and int will hold
> in C? (before it overflows or underflows)
>
> if it's compiler-dependent, then does anyone know where I can find the GCC
> documentation for stuff like that?
It will be architecture dependent (32 or 64 bit machines?). I doubt the
GCC docs talk about this. You might check Richard Steven's book on
"Advanced Unix Programming". It covers lots of information about
standard machine limits and how to discover them.
Richard Coleman
richardcoleman at mindspring.com
More information about the freebsd-hackers
mailing list