Browse Source

refactoring: changed variable num1 to a and variable num2 to b

remotes/origin/develop
Sandro Welte 11 months ago
parent
commit
56f6adbd58
  1. 4
      src/arithmeticMultiplication_Int.c

4
src/arithmeticMultiplication_Int.c

@ -3,14 +3,14 @@
#include "arithmeticMultiplication_Int.h"
#include <stdlib.h>
int* multiplication_integer(int num1, int num2) {
int* multiplication_integer(int a, int b) {
int *result = (int*)malloc(sizeof(int));
if (result == NULL) {
// Handle memory allocation failure
return NULL;
}
*result = num1 * num2;
*result = a * b;
return result;
}

Loading…
Cancel
Save