Browse Source

refactoring: removed unnecessary description

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

2
src/arithmeticMultiplication_Double.c

@ -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;

Loading…
Cancel
Save