Browse Source

refactoring: changed variable names

remotes/origin/develop
Eric Bagus 11 months ago
parent
commit
3befbff35d
  1. 4
      src/arithmeticAddition.c

4
src/arithmeticAddition.c

@ -12,8 +12,8 @@ int* addition_integer(int num1, int num2) {
return result; return result;
} }
double* addition_double(double num1, double num2) {
double* addition_double(double number1, double number2) {
double* result = malloc(sizeof(double)); double* result = malloc(sizeof(double));
*result = num1+num2;
*result = number1+number2;
return result; return result;
} }
Loading…
Cancel
Save