Advertisement
Patresss

Untitled

Aug 29th, 2014
452
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1.       #include <stdio.h>
  2.  
  3.     int f1 (int (*t)(int)) {
  4.         int n=8;
  5.         while ((*t)(n)) n--;
  6.         return n;
  7.     }
  8.     int f2 (int n) {
  9.         return n*n-6*n+5;
  10.     }
  11.  int main()
  12. {
  13.     printf("f1(f2) = %d\n",f1(f2));
  14. return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement