diff options
Diffstat (limited to 'strings_misc.c')
-rw-r--r-- | strings_misc.c | 33 |
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); +} |