Browse Source

refactoring: changed variable names

remotes/origin/develop
Eric Bagus 11 months ago
parent
commit
5f8bfdb3b4
  1. 12
      src/arithmeticAddition.c

12
src/arithmeticAddition.c

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