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