You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

12 lines
330 B

#include "stdlib.h"
#include "arithmeticMultiplication_Double.h"
double* multiplication_double(double a, double b) {
double* result = (double*)malloc(sizeof(double));
if (result == NULL) {
return NULL;
}
*result = a * b; // we multiply a times b and the result gets saved in *result
return result;
}