Skip to content

Instantly share code, notes, and snippets.

@alastair
Created April 30, 2013 12:21
Show Gist options
  • Save alastair/5488370 to your computer and use it in GitHub Desktop.
Save alastair/5488370 to your computer and use it in GitHub Desktop.
static int addone(int a) {
return a + 1;
}
int addtwo(int a) {
return addone(addone(a));
}
#include <stdio.h>
static int addone(int);
int main(int argc, char** argv) {
int a = 4;
printf("a is %d\n", a);
int b = addone(a);
printf("b is %d\n", b);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment