Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/12/84; site desint.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!tektronix!hplabs!sdcrdcf!trwrb!desint!geoff
From: geoff@desint.UUCP (Geoff Kuenning)
Newsgroups: net.lang.c
Subject: Re: Re: parens around sizeof arg
Message-ID: <348@desint.UUCP>
Date: Sat, 2-Mar-85 21:17:50 EST
Article-I.D.: desint.348
Posted: Sat Mar  2 21:17:50 1985
Date-Received: Thu, 7-Mar-85 04:09:57 EST
References: <8048@brl-tgr.ARPA> <607@ncoast.UUCP> <512@rlgvax.UUCP> <314@gumby.UUCP> <290@talcott.UUCP> <317@gumby.UUCP>
Organization: his home computer, Manhattan Beach, CA
Lines: 16

>> That's a "sizeof(type)", not a "sizeof thing", and the parentheses are
>> necessary in that case.
> 
>    Oh, how nice.  Something else for experts in C to know so they can feel
> superior to the novices.  Never have one, consistent way to use a language 
> construct when you can have two to demonstrate your mastery of the arcana.
 
Well, the easy answer is in Kernighan and Plaugher:  "When in doubt,
PARENTHESIZE."  A lot of people prefer to parenthesize all sizeof's as a
stylistic thing anyway.
-- 

	Geoff Kuenning
	Unix Consultant
	(213) 545-4413
	...!ihnp4!trwrb!desint!geoff