Is #define THING -10 completely safe?

Richard Minner rtm at christmas.UUCP
Fri Jan 25 13:19:01 AEST 1991


In article <1991Jan23.015757.22220 at portia.Stanford.EDU> fangchin at portia.Stanford.EDU (Chin Fang) writes:
>... from my /usr/include/limits.h
>#define INT_MIN     -2147483648  /* min decimal value of an "int" */

Something I've been curious about, should the above be
#define INT_MIN   (-2147483648)

The precedence rules seem to imply that ()'s aren't needed
with a negative integer constant.  Could someone confirm or
deny this please?  (I always use ()'s out of habit.)
-- 
Richard Minner  rtm at island.COM  {uunet,sun,well}!island!rtm
Island Graphics Corporation  Sacramento, CA  (916) 736-1323



More information about the Comp.lang.c mailing list