Browse Source

refactoring: changed variables

remotes/origin/develop
Sandro Welte 11 months ago
parent
commit
1466519e36
  1. 4
      src/arithmeticMultiplication_Float.c

4
src/arithmeticMultiplication_Float.c

@ -1,12 +1,12 @@
#include "arithmeticMultiplication_Float.h" #include "arithmeticMultiplication_Float.h"
#include <stdlib.h> #include <stdlib.h>
float* multiplication_float(float num1, float num2) {
float* multiplication_float(float a, float b) {
float* result = (float*)malloc(sizeof(float)); float* result = (float*)malloc(sizeof(float));
if (result == NULL) { if (result == NULL) {
return NULL; // Handle memory allocation failure return NULL; // Handle memory allocation failure
} }
*result = num1 * num2;
*result = a * b;
return result; return result;
} }
Loading…
Cancel
Save