Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
K&R Braces
/* 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