|
|
@ -16,4 +16,16 @@ double* addition_double(double number1, double number2) { |
|
|
|
double* result = malloc(sizeof(double)); |
|
|
|
*result = number1+number2; |
|
|
|
return result; |
|
|
|
} |
|
|
|
|
|
|
|
float* addition_float(float number1, float number2) { |
|
|
|
float* result = malloc(sizeof(float)); |
|
|
|
*result = number1+number2; |
|
|
|
return result; |
|
|
|
} |
|
|
|
|
|
|
|
long* addition_long(long number1, long number2) { |
|
|
|
long* result = malloc(sizeof(long)); |
|
|
|
*result = number1+number2; |
|
|
|
return result; |
|
|
|
} |