Article View: comp.std.c
Article #515Re: Semi constant expressions
From: Alan J Rosenthal
Date: Fri, 01 Sep 1989 15:19
Date: Fri, 01 Sep 1989 15:19
12 lines
853 bytes
853 bytes
msb@sq.sq.com (Mark Brader) writes: >> x << (100000000L) >By the way, the L on the right operand has no effect. ... >and the plain constant 100000000 would be [int] or [long] depending on the >size of ints. But a good compiler might warn you if you say "100000000" and it gets promoted to long. (For example, not that this compiler is otherwise good, later versions of the QNX C compiler.) Of course, compilers can warn about anything, but this sounds like a reasonable warning. ajr
Technical Details
Message-ID:
<1989Sep1.111928.27836@jarvis.csri.toronto.edu>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!dgp.toronto.edu!flapsReferences:
<1237@gmdzi.UUCP> <1989Aug31.175652.29643@sq.sq.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!dgp.toronto.edu!flaps From: flaps@dgp.toronto.edu (Alan J Rosenthal) Newsgroups: comp.std.c Subject: Re: Semi constant expressions Message-ID: <1989Sep1.111928.27836@jarvis.csri.toronto.edu> Date: 1 Sep 89 15:19:29 GMT References: <1237@gmdzi.UUCP> <1989Aug31.175652.29643@sq.sq.com> Lines: 12