Re: integer and long max/min values

2003-11-25 Thread Sean Farley
On Fri, 21 Nov 2003, Duane H. Hesser wrote: > On 21-Nov-2003 Richard Coleman wrote: > > 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 kno

Re: integer and long max/min values

2003-11-21 Thread Duane H. Hesser
On 21-Nov-2003 Richard Coleman wrote: > 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 li

Re: integer and long max/min values

2003-11-21 Thread ari
EMAIL PROTECTED] Behalf Of ext > > Tim Kientzle > > Sent: Friday, November 21, 2003 12:24 AM > > To: Jay Sern Liew > > Cc: [EMAIL PROTECTED] > > Subject: Re: integer and long max/min values > > > > > > Jay Sern Liew wrote: > > > how do

Re: integer and long max/min values

2003-11-21 Thread Peter Pentchev
On Fri, Nov 21, 2003 at 09:53:50AM -0800, [EMAIL PROTECTED] wrote: [format recovered; Tim Kientzle wrote:] > > 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) > > > > #include > > > > INT_M

RE: integer and long max/min values

2003-11-21 Thread Vijay.Singh
TECTED] > Subject: Re: integer and long max/min values > > > 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) > > #include > > INT_MAX and INT_MIN are the m

Re: integer and long max/min values

2003-11-21 Thread Richard Coleman
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 ma

Re: integer and long max/min values

2003-11-21 Thread Tim Kientzle
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) #include INT_MAX and INT_MIN are the max/min values for an int LONG_MAX and LONG_MIN are the max/min values for long. Also, see stdint.h, which is defined in

Re: integer and long max/min values

2003-11-20 Thread Christopher Vance
On Thu, Nov 20, 2003 at 10:39:05PM -0600, 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? Wrong mai