From 102341d7ae8793c29d44fa416d3b5b797d1eca3e Mon Sep 17 00:00:00 2001 From: Clay Smith Date: Tue, 1 Aug 2023 01:09:09 -0500 Subject: First commit --- strings_misc.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 strings_misc.c (limited to 'strings_misc.c') diff --git a/strings_misc.c b/strings_misc.c new file mode 100644 index 0000000..dd29465 --- /dev/null +++ b/strings_misc.c @@ -0,0 +1,33 @@ +#include +#include + +long int add3Nums(int a, int b, int c) { + + return a + b + c; + +} + +void func1(void){ + printf("clay\n"); +} + +double hello(char a, char b, int c, double d); + + +int main(void){ + + long int answer = add3Nums(5, 3422, 10560); + printf("%ld \n", answer); + func1(); + func1(); + hello('z','f','r',3.14); + return 0; +} + + +double hello(char a, char b, int c, double d) +{ + char string[] = {a,b,c,'\0'}; + printf("string includes %s\n",string); + return floor(d); +} -- cgit v1.2.1