integer and long max/min values

Jay Sern Liew liew at jaysern.org
Thu Nov 20 20:39:10 PST 2003


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?

thanks.

________________________________________________________________________
Jay Sern Liew
jaysern@{acm,ieee}.org
gpg --keyserver pgp.mit.edu --recv-keys 0xA115A33F

pub  1024D/A115A33F 2003-01-02 Jay Sern Liew <liew at jaysern.org>
     Key fingerprint = B08E 2481 B4CE 284A C0DE  E359 8646 7B7E A115 A33F
sub  1024g/7504C197 2003-01-02 [expires: 2003-12-31]


More information about the freebsd-hackers mailing list