Skip to content

Instantly share code, notes, and snippets.

@tuttlem
Created November 25, 2012 01:55
Show Gist options
  • Save tuttlem/4142080 to your computer and use it in GitHub Desktop.
Save tuttlem/4142080 to your computer and use it in GitHub Desktop.
Add program - C
#include <stdio.h>
/** Forward declaration for our add function */
int add(int, int);
int main() {
/* add some numbers */
int x = add(5, 4);
/* print the result out */
printf("5+4=%d\n", x);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment