单项选择题

有下列程序:
#include<stdio.h>
#define f(x)x*x*X
main()
{ int a=3,s,t;
s=f(a+1) ;t=f((a+1) );
printf("%d,%d\n",s,t);
}
程序运行后的输出结果是()。

A.10,64
B.10,10
C.64,10
D.64,64

<上一题 目录 下一题>
热门 试题

单项选择题
有下列程序: #include<Stdio.h> int f(int n); main() { int a=3,s; s=f(A) ;s=s+f(A) ;printf( %d n ,s); } int f(int n) { static int a=1; n+=a++; return n; } 程序运行后的输出结果是()。

A.7
B.8
C.9
D.10

单项选择题
设有下列函数: void fun(int n,char*S){……} 则下面对函数指针的定义和赋值均正确的是()。

A.void(*p();pf=fun;
B.void*pf();pr=fun;
C.void*pr();*pf=fun;
D.void(*p(int,cha;pf=&fun;

相关试题
  • 有下列程序: #include<stdio.h> fun...
  • 有下列程序: #include<stdio.h> int...
  • 有以下程序 #include<stdio.h> typed...
  • 有下列程序: #include<stdio.h> mai...
  • 下列程序运行后的输出结果是______。...