summaryrefslogtreecommitdiff
path: root/func_practice_1.c
diff options
context:
space:
mode:
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[])