Created
November 25, 2012 01:55
-
-
Save tuttlem/4142080 to your computer and use it in GitHub Desktop.
Add program - C
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
#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