|
@ -12,8 +12,8 @@ int* addition_integer(int num1, int num2) { |
|
|
return result; |
|
|
return result; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
double* addition_double(double num1, double num2) { |
|
|
|
|
|
|
|
|
double* addition_double(double number1, double number2) { |
|
|
double* result = malloc(sizeof(double)); |
|
|
double* result = malloc(sizeof(double)); |
|
|
*result = num1+num2; |
|
|
|
|
|
|
|
|
*result = number1+number2; |
|
|
return result; |
|
|
return result; |
|
|
} |
|
|
} |