From 336e2932109018fa679c92485bc9d236f7c6b4c1 Mon Sep 17 00:00:00 2001 From: loshprung Date: Sun, 22 Dec 2019 11:50:33 -0800 Subject: First Commit --- func_practice_1.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 func_practice_1.c (limited to 'func_practice_1.c') 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 + +int sum(int[]); + +int main(){ + int my_num[] = {1, 2, 3}; + printf("The total is : %d", sum(my_num)); +} + +int sum(int x[]) -- cgit