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

  1. #include "stdlib.h"
  2. #include "arithmeticMultiplication_Double.h"
  3. double* multiplication_double(double a, double b) {
  4. double* result = (double*)malloc(sizeof(double));
  5. if (result == NULL) {
  6. return NULL;
  7. }
  8. *result = a * b; // we multiply a times b and the result gets saved in *result
  9. return result;
  10. }