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
296 B

  1. #include "arithmeticMultiplication_Float.h"
  2. #include <stdlib.h>
  3. float* multiplication_float(float a, float b) {
  4. float* result = (float*)malloc(sizeof(float));
  5. if (result == NULL) {
  6. return NULL; // Handle memory allocation failure
  7. }
  8. *result = a * b;
  9. return result;
  10. }