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