Article View: net.lang.c
Article #9484Re: sizeof (int) - 1
From: Andrew Koenig
Date: Sat, 04 Oct 1986 12:14
Date: Sat, 04 Oct 1986 12:14
8 lines
687 bytes
687 bytes
> The expression > > sizeof (int) - 1 > > is not ambiguous. The operand of "sizeof" must either by a typecast or > an lvalue. "(int) -1" is neither. Nope. The operand of "sizeof" can be an rvalue.
Technical Details
Message-ID:
<6153@alice.uUCp>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!columbia!rutgers!caip!princeton!allegra!alice!arkReferences:
<4331@brl-smoke.ARPA>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!columbia!rutgers!caip!princeton!allegra!alice!ark From: ark@alice.UucP (Andrew Koenig) Newsgroups: net.lang.c Subject: Re: sizeof (int) - 1 Message-ID: <6153@alice.uUCp> Date: Sat, 4-Oct-86 08:14:18 EDT Article-I.D.: alice.6153 Posted: Sat Oct 4 08:14:18 1986 Date-Received: Mon, 6-Oct-86 18:46:44 EDT References: <4331@brl-smoke.ARPA> Organization: Bell Labs, Murray Hill Lines: 8