You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
588 B
22 lines
588 B
|
|
#include "arithmeticSubtraction.h"
|
|
|
|
#include <stdlib.h>
|
|
//arithmetic Subtraction specification integer 1 function
|
|
int* subtraction_integer(int a, int b) {
|
|
int* result= malloc(sizeof (int));
|
|
*result=a - b;
|
|
return result;
|
|
}
|
|
//arithmetic Subtraction specification float
|
|
float* subtraction_float(float a, float b) {
|
|
float* result= malloc(sizeof (float));
|
|
*result=a - b;
|
|
return result;
|
|
}
|
|
//arithmetic Subtraction specification double
|
|
double* subtraction_double(double a, double b) {
|
|
double* result= malloc(sizeof (double));
|
|
*result=a - b;
|
|
return result;
|
|
}
|