网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

有以下程序

#include<stdio.h>

#define f(X)X*X*X

main( )

{int a=3,s,t;

s=f(a+1);t=f((n+1));

printf(“%d,%d\n”,s,t);

}

程序运行后的输出结果是

A.10,64

B.10,10

C.64,10

D.64,64


参考答案

更多 “ 有以下程序#includestdio.h#define f(X)X*X*Xmain( ){int a=3,s,t;s=f(a+1);t=f((n+1));printf(“%d,%d\n”,s,t);}程序运行后的输出结果是A.10,64B.10,10C.64,10D.64,64 ” 相关考题
考题 有以下程序#include stdio.h#define f(x) x*x*xmain(){ int a=3,s,t;s=f(a+1);t=f((a+1));printf("%d,%d\n",s,t);}程序运行后的输出结果是A)10,64B)10,10C)64,10D)64,64

考题 以下程序段:Functionjishu1(x!,eps)AsDoubleDimn%,s,tn=1:s=0:t=1DoWhile(Abs(t)>=e 以下程序段:Functionjishu1(x!,eps#)AsDoubleDimn%,s#,t#n=1:s=0:t=1DoWhile(Abs(t)=eps)s=s+tt=t*x/nn=n+1Loopjishu1=sEndFunctionSubjishu2(s#,x!,eps#)Dimn%,t#n=1:s=0:t=1DoWhile(Abs(t)=eps)s=s+tt=t*x/nn=n+1LoopEndSubPrivateSubCommand1_Click()Dimf1#,f2#f1=jishu1(2#, 0.000001)Calljishu2(f2,2#,0.000001)Printf1=;f1,f2=;f2EndSub对程序说法正确的是( )A.计算jishu1是调用子过程,而计算jishu2是调用函数B.当程序运行单击命令按钮后,窗体中显示的f1和f2的结果不相同C.当程序运行单击命令按钮后,窗体中显示的f1和f2的结果相同D.以上说法都不正确

考题 有以下程序:includevoid f(char*s,char*t){ char k;k=*s;*s=*t;*t=k;s++;t--;if(*s)f 有以下程序: #include<string.h> void f(char*s,char*t) { char k; k=*s; *s=*t; *t=k; s++; t--; if(*s) f(s,t); } main( ) {char str[10]="abcdefg",*p; p=str+strlen(str)/2+1; f(p,p-2); printf(~%s\n",str); } 程序运行后的输出结果是 ______。A.abcdefB.gfedcbaC.gbcdefaD.abedcfg

考题 有以下程序 include void fun(int n, int *p) { int f1,t2; if(n==1 | 有以下程序 #include <stdio.h> void fun(int n, int *p) { int f1,t2; if(n==1 ||n==2) *p=1; else { fun(n-1,f1); fun(n-2,f2); *p=f1+f2; } } main() { int s; fun(3,s); printf("%d\n", s ); }A.2B.3C.4D.5

考题 类模板templateclass x{…},其中友元函数f对特定类型T(如int),使函数f(x)成为x 类模板template<class T>class x{…},其中友元函数f对特定类型T(如int),使函数f(x<int>)成为x<int>模板类的友元,则其说明为( )。A.friend voidf();B.friend voidf(x<T>);C.friend voidA::f();D.friend void C<T>::f(x<T>);

考题 有以下程序: #includedstdi0.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,64B.10,10C.64,10D.64,64

考题 类模板templateclass x{...},其中友元函数f对特定类型T(如int),使函数f(x)成为x 类模板template<class T>class x{...},其中友元函数f对特定类型T(如int),使函数f(x<int>)成为x<int>模板类的友元,则其说明为( )。A.friend voidf();B.friend voidf(x<T>);C.friend voidA::f();D.friend void C<T>::f(x<T>);

考题 采样后信号频谱应是X(f)和S(f)的卷积,相当于将X(f)乘以采样间隔Ts,然后将其平移,使其中心落在脉冲序列S(f)的频率点上,X(f)为模拟信号x(t)的傅里叶变换,S(f)为周期脉冲序列s(t)的傅里叶变换。

考题 已知表达式P[x, f(y), B]的两个置换为:s1={z/x, w/y},s2={q(z)/x, A/y},则以下选项正确的是()A.P[x,f(y),B]s1= P[z/x,f(w/y),B]B.P[x,f(y),B]s2= P[q(z),A,B]C.P[x,f(y),B]s1= P[z,f(w),B]D.P[x,f(y),B]s2= P[q(z),f(A),B]