fork download
  1. #include <stdio.h>
  2.  
  3. int f (int i)
  4. {
  5. return (i + 1);
  6. }
  7.  
  8. int main (void)
  9. {
  10. int x = 4;
  11. int y;
  12. int (*pf) (int i);
  13. pf = f;
  14. y = pf (x);
  15. printf ("%i + 1 = %i\n", x, y);
  16. return 0;
  17. }
Success #stdin #stdout 0.02s 1720KB
stdin
Standard input is empty
stdout
4 + 1 = 5