#include "math.h"
double(*fun_ptr)(double,int,double[]);
void main(){
double cofficeint[]={2,3,-1};
double val;
fun_ptr=&poly;
val=(*fun_ptr)(2.0,2,cofficeint);
printf("%lf",val);
getch();
}
Output:
4.000
No comments:
Post a Comment