summaryrefslogtreecommitdiff
path: root/func_practice_1.c
diff options
context:
space:
mode:
authorloshprung <lshprung@scu.edu>2019-12-22 11:50:33 -0800
committerloshprung <lshprung@scu.edu>2019-12-22 11:50:33 -0800
commit336e2932109018fa679c92485bc9d236f7c6b4c1 (patch)
tree28a076f3b9d57b8ff817efcd7ac0101ec0ae4d78 /func_practice_1.c
First Commit
Diffstat (limited to 'func_practice_1.c')
-rw-r--r--func_practice_1.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/func_practice_1.c b/func_practice_1.c
new file mode 100644
index 0000000..4af6fe4
--- /dev/null
+++ b/func_practice_1.c
@@ -0,0 +1,10 @@
+#include <stdio.h>
+
+int sum(int[]);
+
+int main(){
+ int my_num[] = {1, 2, 3};
+ printf("The total is : %d", sum(my_num));
+}
+
+int sum(int x[])