🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3670

Parenthesis with return ?

#3670
From: Frank DENIS (Jedi/Sector One)
Date: Mon, 07 Aug 1995 16:38
30 lines
1422 bytes
As I saw that "return" doesn't seem to need parenthesis around its
return value, I've never used them :

int foo(int a)
{
  return a + 1;
}

But it appears that may coders add them anyway :

int foo(int a)
{
  return (a + 1);
}

So I was wondering what was the right thing to do .. Despite it looks
quite strange without these parenthesis, all C compilers are fine
working like that and this is surely the right norm.

But in the next release of the C standard, would these parenthesis be
required or will they still be optional ?

Thanks.
-- 
`-=[Frank DENIS] aka [JEDI from SECTOR ONE] (HP 48, PC, Unix Code & Music)=-'
< root@the_one.epita.fr & denis_r@epita.edu -=- http://www.epita.edu/~denis_r >
 Internet is not wide enough to keep all the love I still got for you, Fanou
Ring now : THE 0NE BBS (+33) 149 887 691 / N0 Ratio for Long Distance Callers
Minitel: RTC-ONE (1) 48 70 10 29 - (1) 48 58 46 17 - 3615 CYRIELLE - 3615 TR
   ...  "Programming Will Never Feature Your Machine. Learn Coding."  ...
Technical Details
Message-ID: <405fhs$iin@boson.epita.fr>
Path: arc1-ca.pugleaf.net!boson.epita.fr!cation!denis_r

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!boson.epita.fr!cation!denis_r
From: denis_r@epita.fr (Frank DENIS (Jedi/Sector One))
Newsgroups: comp.std.c
Subject: Parenthesis with return ?
Date: 7 Aug 1995 16:38:20 GMT
Organization: Epita (French engineering school)
Distribution: world
Message-ID: <405fhs$iin@boson.epita.fr>
NNTP-Posting-Host: cation.epita.fr
X-newsreader: XRN SunLight
Function: KrAzY k0dEr