From 56f6adbd5877aa38a2bc657eae2f4f207e04e416 Mon Sep 17 00:00:00 2001 From: Sandro Welte Date: Thu, 8 Feb 2024 17:51:35 +0100 Subject: [PATCH] refactoring: changed variable num1 to a and variable num2 to b --- src/arithmeticMultiplication_Int.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/arithmeticMultiplication_Int.c b/src/arithmeticMultiplication_Int.c index 6fff2ec..1ad1a19 100644 --- a/src/arithmeticMultiplication_Int.c +++ b/src/arithmeticMultiplication_Int.c @@ -3,14 +3,14 @@ #include "arithmeticMultiplication_Int.h" #include -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; }