#include int square(int x) { return x * x; } int main() { extern int sumrange(int (*f)(int), int low, int high); printf("%d\n", sumrange(square, 5, 10)); return 0; } int sumrange(int (*f)(int), int low, int high) { int x; int sum = 0; for (x = low; x <= high; x++) sum += (*f)(x); return sum; }