|
@ -2,11 +2,11 @@ |
|
|
#include "arithmeticMultiplication_Double.h" |
|
|
#include "arithmeticMultiplication_Double.h" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
double* multiplication_double(double num1, double num2) { |
|
|
|
|
|
|
|
|
double* multiplication_double(double a, double b) { |
|
|
double* result = (double*)malloc(sizeof(double)); |
|
|
double* result = (double*)malloc(sizeof(double)); |
|
|
if (result == NULL) { |
|
|
if (result == NULL) { |
|
|
return NULL; // Handle memory allocation failure |
|
|
return NULL; // Handle memory allocation failure |
|
|
} |
|
|
} |
|
|
*result = num1 * num2; |
|
|
|
|
|
|
|
|
*result = a * b; |
|
|
return result; |
|
|
return result; |
|
|
} |
|
|
} |