Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: Bit Addressable Architectures Message-ID: <7696@brl-smoke.ARPA> Date: 15 Apr 88 21:35:57 GMT References: <11702@brl-adm.ARPA> <243@eagle_snax.UUCP> <2245@geac.UUCP> <7684@brl-smoke.ARPA> <259@sdrc.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 16 In article <259@sdrc.UUCP> scjones@sdrc.UUCP (Larry Jones) writes: -In article <7684@brl-smoke.ARPA>, gwyn@brl-smoke.ARPA (Doug Gwyn ) writes: -> (I don't think the array name is turned into a pointer just because it's -> surrounded by parentheses.) -If it ain't, the compiler's broke! The sizeof operator can be applied to a -parenthesized type name or to an expression. Since "foo" isn't a type name, -the operand of sizeof is an expression. When an array name appears in an -expression and it's not the operand of & or sizeof (whose operand is the -parenthesized express, remember), it's converted into a pointer to the first -element. My problem was that I couldn't find where in the dpANS the effect of the parentheses operator was defined. Is it in there somewhere? Your explanation sounds right to me but I do want to see what we say about the effect of parentheses. Perhaps we removed too much!