Created
December 3, 2011 07:06
-
-
Save jneufeld/1426359 to your computer and use it in GitHub Desktop.
K&R Braces
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Here's what I've been doing lately */ | |
int f( int x ) | |
{ | |
if( x ) | |
{ | |
x++; | |
} | |
return x; | |
} | |
/* The K&R way */ | |
int f (int x) | |
{ | |
if (x) { | |
x++; | |
} | |
return x; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment