Question #39944

code for write a function prototype for a function which accepts two integers as parameters and returns their difference?

Expert's answer

#include <stdio.h>
int difference(int one, int two);
int main() {
    int a, b;
    scanf("%d %d", &a, &b);
    printf("%d\n", difference(a, b));
    return 0;
}
int difference(int one, int two) {
    return one - two;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS