Source.c 253 B

12345678910111213141516171819
  1. #include <Stdio.h>
  2. int Sum(int a, int b) {
  3. return a + b;
  4. }
  5. int Sub(int a, int b) {
  6. return a - b;
  7. }
  8. int SorD(int(*f)(int, int), int a, int b) {
  9. return(f(a, b));
  10. }
  11. int main() {
  12. printf("%d\n", SorD(Sub, 5, 2));
  13. printf("%d\n", SorD(Sum, 5, 2));
  14. }