fork download
  1. #include<stdio.h>
  2.  
  3. double seki(double x, double y);
  4.  
  5. int main(void)
  6. {
  7. double (*p)(double x,double y);
  8. double n1 = 2.0;
  9. double n2 = 3.0;
  10.  
  11. p=seki;
  12.  
  13. printf("%lf\n", (*p)(n1,n2));
  14.  
  15. return 0;
  16. }
  17.  
  18. double seki(double x, double y)
  19. {
  20. return x * y;
  21. }
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
6.000000