|
@ -2,19 +2,19 @@ |
|
|
#include "arithmeticSubtraction.h" |
|
|
#include "arithmeticSubtraction.h" |
|
|
|
|
|
|
|
|
#include <stdlib.h> |
|
|
#include <stdlib.h> |
|
|
//arithmetic Subtraction specification integer 1 function |
|
|
|
|
|
|
|
|
//arithmetic Subtraction specification integer |
|
|
int* subtraction_integer(int a, int b) { |
|
|
int* subtraction_integer(int a, int b) { |
|
|
int* result= malloc(sizeof (int)); |
|
|
int* result= malloc(sizeof (int)); |
|
|
*result=a - b; |
|
|
*result=a - b; |
|
|
return result; |
|
|
return result; |
|
|
} |
|
|
} |
|
|
//arithmetic Subtraction specification float 2 function |
|
|
|
|
|
|
|
|
//arithmetic Subtraction specification float |
|
|
float* subtraction_float(float a, float b) { |
|
|
float* subtraction_float(float a, float b) { |
|
|
float* result= malloc(sizeof (float)); |
|
|
float* result= malloc(sizeof (float)); |
|
|
*result=a - b; |
|
|
*result=a - b; |
|
|
return result; |
|
|
return result; |
|
|
} |
|
|
} |
|
|
//arithmetic Subtraction specification double 3 function |
|
|
|
|
|
|
|
|
//arithmetic Subtraction specification double |
|
|
double* subtraction_double(double a, double b) { |
|
|
double* subtraction_double(double a, double b) { |
|
|
double* result= malloc(sizeof (double)); |
|
|
double* result= malloc(sizeof (double)); |
|
|
*result=a - b; |
|
|
*result=a - b; |
|
|