summaryrefslogtreecommitdiff
path: root/strings_misc.c
diff options
context:
space:
mode:
authorClay Smith <claysmith158@gmail.com>2023-08-01 01:09:09 -0500
committerClay Smith <claysmith158@gmail.com>2023-08-01 01:09:09 -0500
commit102341d7ae8793c29d44fa416d3b5b797d1eca3e (patch)
tree6df9a5d5ef978dc6809a7d71d50de6e359dae2e7 /strings_misc.c
First commitHEADmain
Diffstat (limited to 'strings_misc.c')
-rw-r--r--strings_misc.c33
1 files changed, 33 insertions, 0 deletions
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 <stdio.h>
+#include <math.h>
+
+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);
+}