Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!rpi!uupsi!cmcl2!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: Unnecessary parentheses (Was: Help: VAX C problem) Message-ID: <15826@smoke.brl.mil> Date: 15 Apr 91 21:33:11 GMT References: <1991Apr1.203600.15721@zoo.toronto.edu> <1#.gqcm@rpi.edu> <3176@oucsace.cs.OHIOU.EDU> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 11 In article <3176@oucsace.cs.OHIOU.EDU> sadkins@oucsace.cs.OHIOU.EDU (Scott W. Adkins) writes: >In this case, they do not indicate that one is a function and the other is >an operator. sizeof is always a unary operator keyword, never a function name. It can be validly used in two distinct ways: sizeof unary_expression sizeof ( type_name ) Some people put parentheses around the innards of their unary_expression, but they are not required. (Same as for the operand of "return".)