Last active
January 28, 2016 14:49
-
-
Save pinglunliao/df700e018901fadd9595 to your computer and use it in GitHub Desktop.
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> | |
int power(int x); // 這叫函式原型,是用來騙編譯器的 | |
int main(void) { | |
int result = power(3); | |
printf("printf本身就是函數囉!\n"); | |
printf("3^2 = %d", result); | |
return 0; | |
} | |
int power(int x) { | |
int y = x * x; | |
return y; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment