Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

How Do You Pronounce ``int foo(int x);"

Name: Anonymous 2012-09-13 11:07

1.

int foo(int x)
{
    return bar * 2;
}


2. int foo(int x) { return bar * 2; }

3.
int foo(int x){
    return bar*2;
}


(``faggot")

Name: Anonymous 2012-09-14 0:05

>>10
Back to le Java, ``faggot''

(Honestly, though, I can't see the point of putting the opening brace on its own line anymore, either. K&R declarations are  dead.)

>>13
For return, I agree. sizeof does require parens sometimes, however, so I'd rather just use them all the time. It's the same rationale that justifies putting braces around one-statement blocks in control expressions.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List