(12)有以下程序,请在 【12】 处填写正确语句,使程序可正常编译运行。#include <stdio.h>【12】
(12)有以下程序,请在 【12】 处填写正确语句,使程序可正常编译运行。
#include <stdio.h>
【12】 ;
main()
{ double x,y,(*p)();
scanf("%lf%lf",&x,&y);
p=avg;
printf("%f
",(*p)(x,y));
}
double avg(double a,double b)
{ return((a+b)/2);}