Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Nov 2003 22:39:05 -0600 (CST)
From:      Jay Sern Liew <liew@jaysern.org>
To:        freebsd-hackers@freebsd.org
Subject:   integer and long max/min values
Message-ID:  <20031120223816.G61303@pinnacle.schulte.org>

next in thread | raw e-mail | index | archive | help
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@jaysern.org>
     Key fingerprint = B08E 2481 B4CE 284A C0DE  E359 8646 7B7E A115 A33F
sub  1024g/7504C197 2003-01-02 [expires: 2003-12-31]



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031120223816.G61303>