Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA
Path: utzoo!watmath!clyde!cbosgd!cbdkc1!desoto!cord!bentley!hoxna!houxm!vax135!cornell!uw-beaver!tektronix!decvax!genrad!panda!talcott!harvard!seismo!brl-tgr!tgr!cottrell@nbs-vms.ARPA
From: cottrell@nbs-vms.ARPA
Newsgroups: net.lang.c
Subject: parens around sizeof arg
Message-ID: <8048@brl-tgr.ARPA>
Date: Tue, 5-Feb-85 15:47:09 EST
Article-I.D.: brl-tgr.8048
Posted: Tue Feb  5 15:47:09 1985
Date-Received: Sun, 10-Feb-85 03:37:38 EST
Sender: news@brl-tgr.ARPA
Organization: Ballistic Research Lab
Lines: 24

/*
> > (Hey, (guys), let's (not) put extra (parentheses (everywhere)))!
> > sizeof thing
> > sizeof(type)
> 
> Strictly speaking, that is correct syntax.  Still, C allows one to
> parenthesise any expression.  Because "operators" like 'sizeof' and
> 'return' are made up of letters, I like to put their operands in
> parentheses.  Purely visual (not even syntactic) sugar.		;-)
> 
> Joe Yao		hadron!jsdy@seismo.{ARPA,UUCP}

I have to agree with Joe here. I think of sizeof as a compile-time
funxion. Thus the args. Purely style. I always write `if (exp)' &
`while (exp)' but always `return(exp)'. Unless I am cheating, as in

	if (exp)			if (exp) {
		return exp;			exp;
						return;
					}

The example on the left avoids the braces while semi-documenting
the fact that. I know, you are shocked! I'm just a bad guy.
*/