Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site rlgvax.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!talcott!harvard!seismo!rlgvax!guy From: guy@rlgvax.UUCP (Guy Harris) Newsgroups: net.lang.c Subject: Re: parens around sizeof arg Message-ID: <512@rlgvax.UUCP> Date: Mon, 25-Feb-85 02:03:10 EST Article-I.D.: rlgvax.512 Posted: Mon Feb 25 02:03:10 1985 Date-Received: Wed, 27-Feb-85 21:06:32 EST References: <8048@brl-tgr.ARPA> <607@ncoast.UUCP> Organization: CCI Office Systems Group, Reston, VA Lines: 10 > Style for you guys, necessity for others. The only time I use sizeof is > in such expressions as, "sizeof(struct foo)"; and our compiler doesn't > realize that "struct" gets a following name, so "sizeof struct foo" gets > me a syntax error. That's a "sizeof(type)", not a "sizeof thing", and the parentheses are necessary in that case. Guy Harris {seismo,ihnp4,allegra}!rlgvax!guy