Browse Source

refactoring: changed variables

remotes/origin/develop
Sandro Welte 11 months ago
parent
commit
b63bbe41bb
  1. 4
      src/arithmeticMultiplication_Double.c

4
src/arithmeticMultiplication_Double.c

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