From 3befbff35d0c82f04eeb08712474128fe2517959 Mon Sep 17 00:00:00 2001 From: Eric Bagus Date: Thu, 8 Feb 2024 19:23:15 +0100 Subject: [PATCH] refactoring: changed variable names --- src/arithmeticAddition.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/arithmeticAddition.c b/src/arithmeticAddition.c index 81ba426..7d664f2 100644 --- a/src/arithmeticAddition.c +++ b/src/arithmeticAddition.c @@ -12,8 +12,8 @@ int* addition_integer(int num1, int num2) { return result; } -double* addition_double(double num1, double num2) { +double* addition_double(double number1, double number2) { double* result = malloc(sizeof(double)); - *result = num1+num2; + *result = number1+number2; return result; } \ No newline at end of file