From 5f8bfdb3b432cbe33b0334ef07da6637e79bd75d Mon Sep 17 00:00:00 2001 From: Eric Bagus Date: Thu, 8 Feb 2024 22:47:42 +0100 Subject: [PATCH] refactoring: changed variable names --- src/arithmeticAddition.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/arithmeticAddition.c b/src/arithmeticAddition.c index 8f93738..173c438 100644 --- a/src/arithmeticAddition.c +++ b/src/arithmeticAddition.c @@ -12,20 +12,20 @@ int* addition_integer(int num1, int num2) { return result; } -double* addition_double(double number1, double number2) { +double* addition_double(double num1, double num2) { double* result = malloc(sizeof(double)); - *result = number1+number2; + *result = num1+num2; return result; } -float* addition_float(float number1, float number2) { +float* addition_float(float num1, float num2) { float* result = malloc(sizeof(float)); - *result = number1+number2; + *result = num1+num2; return result; } -long* addition_long(long number1, long number2) { +long* addition_long(long num1, long num2) { long* result = malloc(sizeof(long)); - *result = number1+number2; + *result = num1+num2; return result; } \ No newline at end of file