Tom Zych wrote:
Nicholas wrote:
How can I get the largest possible value of the Integer Constants and use it
in the program for these types:
1. int
2. long
3. unsigned short
#include <limits.h>
INT_MAX, LONG_MAX, USHRT_MAX. And many more.
See http://www-ccs.ucsd.edu/c/limits.html .
To the OP: also note that if portability is one of your objectives, you
will want to use the minimal required values for those limits as
specified in the ISO C standard (e.g. 65536 for UINT_MAX, etc.).
--
Tom Zych
This email address will expire at some point to thwart spammers.
Permanent address: echo 'g******@cbobk.pbz' | rot13
Tom: nitpick. Your sig block looks ok, but is not (else it would have
been automatically cut away by my newsreader...): you need to have an
additional space character after those two dashes that start your sig block.
--
Bertrand Mollinier Toublet
"In regard to Ducatis vs. women, it has been said: 'One is a sexy thing
that you've just got to ride, even if it breaks down a lot, costs a lot
of money, and will probably try to kill you'. However, nowadays I can't
seem to remember which one is which." -- Peer Landa