单选题
C语言
题号 #2329171
有以下程序
float f1(float n)
{ return n*n; }
float f2(float n)
{ return 2*n; }
main()
{
float (*p1)(float),(*p2)(float),(*t)(float), y1, y2;
p1=f1;
p2=f2;
y1=p2( p1(2.0) );
t = p1; p1=p2; p2 = t;
y2=p2( p1(2.0) );
printf("%3.0f, %3.0f\n",y1,y2);
}
程序运行后的输出结果是( )
参考答案
A
答案解析
暂无解析
你可能感兴趣的试题
A.p是指向struct node结构变量的指针的指针。
B.NODE p;语句出错。
C.p是指向struct node结构变量的指针。
D.p是struct node结构变量。
A.typedef struct
{int n; char c;}REC;
REC t1,t2;
{int n; char c;}REC;
REC t1,t2;
B.struct REC
{int n; char c;};
REC t1,t2;
{int n; char c;};
REC t1,t2;
C.typedef struct REC ;
{int n=0; char c='A';}t1,t2;
{int n=0; char c='A';}t1,t2;
D.struct
{int n;char c;}REC t1,t2;
{int n;char c;}REC t1,t2;