summaryrefslogtreecommitdiff
path: root/strings_misc.c
blob: dd29465681183f1f68c0839bf6f046b0ef2b0235 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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);
}