网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
下列程序的运行结果是______。
define POW(r)(r)*?
main()
{ int x=3,y=2,t;
t=POW(x+y);
printf("%d\n",t);
}
参考答案
更多 “ 下列程序的运行结果是______。define POW(r)(r)*?main(){ int x=3,y=2,t;t=POW(x+y);printf("%d\n",t);} ” 相关考题
考题
下列程序的运行结果是( )。 Publicclasssun { Publicstaticvoidmain(Stringargs[]) { intx=4,y=0; if(Math.pow(x,2)=16) y=X; if(Math.pow(x,2)<15) y=1/x if(Math.pow(x,2)>15) y=(int)Math.pow(x92)+1; system,out.println(y); } }A.4B.17C.18D.0.25
考题
有以下程序:includefun(int a, int b){if(a>b) return(a); elsereturn(b);}main(){int
有以下程序: #include <stdio.h> fun(int a, int b) { if(a>b) return(a); else return(b); } main() { int x=3,y=8,z=6,r; r=fun(fun(x,y),2*z); printf("%d\n",r); } 程序运行后的输出结果是( )。A.3B.6C.8D.12
考题
若有程序: fun(int a,int b) { static int c=0; c+=a+b: return c; } main() { int x=5,y=3,z=7,r; r=fun((y,x+y),z); r=fun(x,y); printf("%d\n",r); } 上面程序的输出结果是______。A.23B.15C.19D.18
考题
设有如下程序: public class Sun { public static void main(String args[ ]) { int x,y; x=4; y=0; if(Math.pow(x,2)==16) y=x; if(Math.pow(x,2)15) y=1/x; if(Math.pow(x,2)>15) y=(int)Math.pow(x,2)+1; System.out.println(y); } } 程序的运行结果是( )。A.4B.17C.18D.0.25
考题
下面程序的运行结果是void swap(int *a,int *b){ int *t; t=a;a=b;b=t;}main(){ int x=3,y=5,*p=x,*q=y; swap(p,q); printf("%d%d\n",*p,*q);}
考题
下列程序的运行结果是( )。 Public class sun { Public static void main(String args[]) { int x=4,y=0; if(Math.pow(X,2)= =16) y—x ; if(Math.pow(X,2)15) y—l/x; if(Math.pow(X,2)15) y=(int)Math.pow(X,2)+1; system.out.println(y); } }A.4B.17C.18D.0.25
考题
若有程序 fun(int a,int b) { static int c=0; c+=a+b; rerurn c; } main() { int x=5,y=3,z=7,r; r=fun(y,x+y),z); r=fun(x,y); printf("%d\n",r); } 上面程序的输出结果是______。A.23B.15C.19D.18
考题
设有如下程序: public class Sun { public static void main(String args[ ]) { int x, y; x-4; y=0; if(Math.pow(x,2)==16) y=x; if(Math.pow(x,2)<15) y=1/x; if(Math.pow(x,2)>15) y=(int)Math.pow(x,2)+1; System.out.println(y); } } 程序的运行结果是( )。A.4B.17C.18D.0.25
热门标签
最新试卷