|
@ -5,7 +5,7 @@ |
|
|
double* multiplication_double(double a, double b) { |
|
|
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; |
|
|
} |
|
|
} |
|
|
*result = a * b; // we multiply a times b and the result gets saved in *result |
|
|
*result = a * b; // we multiply a times b and the result gets saved in *result |
|
|
return result; |
|
|
return result; |
|
|