网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
以下程序的运行结果是( )。 #include(iostream.h> voidsub(intx,inty,int*z) {*z=y-x;} voidmain( ) {inta,b,c; sub(10,5,&a); sub(7,a,&b); sub(a,b,&c); cout((a<<","<<b<<","<<C<<endl;}
A.5,2,3
B.-5,-12,-7
C.-5,-12,-17
D.5,-2,-7
参考答案
更多 “ 以下程序的运行结果是( )。 #include(iostream.h voidsub(intx,inty,int*z) {*z=y-x;} voidmain( ) {inta,b,c; sub(10,5,&a); sub(7,a,&b); sub(a,b,&c); cout((a","b","Cendl;}A.5,2,3B.-5,-12,-7C.-5,-12,-17D.5,-2,-7 ” 相关考题
考题
以下程序的运行结果是()。includevoid sub(int x,int y,int*z){*Z=y-x;}void main()
以下程序的运行结果是( )。 #include<iostream.h> void sub(int x,int y,int*z) {*Z=y-x;} void main() {int a,b,c; sub(10,5,a); sub(7,a,b); sub(a,b,c); cout<<a<<“,”<<b<<“,”<<c<<endl;}A.5,2,3B.-5,-12,-7C.-5,-12,-17D.5,-2,-7
考题
以下程序的运行结果是include void sub(int x,int y,int *z){*z=y-x;}void main( )
以下程序的运行结果是 #include<iostream.h> void sub(int x,int y,int *z) { *z=y-x;} void main( ) { int a,b,c; sub(10,5,a) ; sub(7,a,b) ; sub(a,b,c) ; cout << a <<","<< b <<"," << c << enA.5,2,3B.-5,-12,-7C.-5,-12,-17D.5,-2,-7
考题
若有以下程序:include using namespace std;void sub(int x,int y, int *z){ *z = y+
若有以下程序: #include <iostream> using namespace std; void sub(int x,int y, int *z) { *z = y+x; } int main() { int a,b, c; sub (8,4,a) ; sub (6, a, b) ; sub(a,b,c) ; cout<<a<<", "<<b<<", "<<c<<end1; return 0; } 程序运行后的输出结果是( )。A.12,18,30B.-12,6,8C.6,8,10D.12,-18,16
考题
以下程序输出结果是():includeusing namespace std;void add(int X,int y,int *z){*z
以下程序输出结果是( ): #include<iostream> using namespace std; void add(int X,int y,int *z) { *z=y+x; } int main() { int a,b,c; add(8,4,a); add(6,a,b); add(a,b,c); cout<<a<<","<<b<<","<<c<<end1; return 0;A.12,10,14B.12,18,30C.12,6,18D.12,14,30
考题
以下程序的运行结果是includevoid sub(int x, int y, int * z){* z=y-x;}void main
以下程序的运行结果是 #include<iostream.h> void sub(int x, int y, int * z) { * z=y-x;} void main( ) { int a,b,c; sub(10,5,a) ; sub(7,a,b) ; sub(a,b,c) ; cout < < a < < "," < < b < < "," < < C < < endl;}A.5,2,3B.-5,-12,-7C.-5,-12,-17D.5,-2,-7
考题
以下程序的运行结果是include void sub(int x,int y,int*z){*z=y-x;}void main(){i
以下程序的运行结果是 #include<iostream.h> void sub(int x,int y,int*z) { *z=y-x;} void main() { int a,b,c; sub(10,5,a); sub(7,a,b); sub(a,b,c); cout << a <<","<< b<<"," << C << endl;}A.5,2,3B.-5,-12,-7C.-5,-12,-17D.5,-2,-7
考题
若有以下程序: include using namespace std;void sub(int x, int y, int *z){*z = y
若有以下程序:# include <iostream>using namespace std;void sub(int x, int y, int *z){ *z = y+x;}int main (){ int a,b, c; sub[8,4.a) ; sub (6, a, b) ; sub (a.b, c) ; cout<<a<<" , "<<b<<", "<<c<<end1; return 0;} 程序运行后的输出结果是A.12,18,30B.-12,6,8C.6,8,10D.12,-18,16
考题
若有以下程序:includeusingnamespacestd;voidsub(intx,inty,int*2){*z=y+x;}int main
若有以下程序: #include<iostream> usingnamespacestd; voidsub(intx,inty,int*2) { *z=y+x; } int main() { int a,b,C; sub(8,4,A) ; sub(6,a,B) ; sub(a,b,C) ; cout<<a<<","<<b<<","<<c<<end1; return 0; }A.12,18,30B.-12,6,8C.6,8,10D.12,-18,16
考题
以下程序执行后的输出结果是include.using namespace std;void try(int,int,int,int)
以下程序执行后的输出结果是 #include<iostream>. using namespace std; void try(int,int,int,int); int main() { int x,y,z,r; x=1; y=2; try(x,y,z,r); cout<<r<<end1; return 0; } void try(int x,int y, int z,int r) { z = x+y; x = x*x; y = y*y; r = z+x+y; }A.18B.9C.10D.不确定
热门标签
最新试卷