1.阅读以下程序,当输入数据的形式为:25,13,10<CR>,正确的输出结果为 。 #include "stdio.h" void main() { int x,y,z; scanf("%d%d%d", x,y,z); printf("x+y+z=%dn",x+y+z); }A.x+y+z=48B.x+y+z=35C.x+z=35D.不确定值

1.阅读以下程序,当输入数据的形式为:25,13,10<CR>,正确的输出结果为 。 #include "stdio.h" void main() { int x,y,z; scanf("%d%d%d", &x,&y,&z); printf("x+y+z=%dn",x+y+z); }

A.x+y+z=48

B.x+y+z=35

C.x+z=35

D.不确定值


参考答案和解析
D

相关考题:

阅读下面程序,则在执行时候的输出为 【8】 。#include "stdio.h"main(){int x=1,y=2,z=0;if(x=2)z=x,x=y,y=z;printf("%d,%d\n",x,y);}

下列程序的输出结果是()。 include VOid p(int *x) {printf("%d",++*x); } void main() 下列程序的输出结果是( )。#include<stdio.h>VOid p(int *x){ printf("%d",++*x);}void main(){ int y=3;p(y);}A.3B.4C.2D.5

以下程序的运行结果为( )。 public class Sun { public static void main(String args[]) { String x="A",y="B",z="C"; for(int m=1;m<=2;m++) { x=y; y=z; z=x; } System.out.println(x+y+z); } }A.ABCB.BCAC.BCBD.CBC

以下程序执行后的输出结果是( )。include usingnamespacestd;void try(int,int,int,in 以下程序执行后的输出结果是( )。 #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.不确定

下列程序的输出结果是()。includevoid p(int *x){printf("%d",++*x);}void main(){int 下列程序的输出结果是( )。 #include<stdio.h> void p(int *x) { printf("%d",++*x); } void main() { int y=3; p(y); }A.3B.4C.2D.5

下面程序的结果【】。 include int f(int); void main() { int x=1,i; for (i=0; i 下面程序的结果【 】。include<iostream.h>int f(int);void main() {int x=1, i;for (i=0; i<3; i++)cout<<f(x)<<‘ ’ ;cout<<end1;}int f(int x){int y=1;static int z=3y++;z++;return (x+y+z);}

main() { int x,y,z; scanf (“%d%d%d”, printf(“x+y+z=%d\n”,x+y+z); } 输入数据的形式是25,13,10,则程序的输出结果是( )A. x+y+z=48B. x+y+z=35C. x+z=35D. 不确定值

有以下程序:include void f(int v, int w){int t; t=v; v=w; w=t;}main(){int x=1,y=3 有以下程序: #include <stdio.h> void f(int v, int w) { int t; t=v; v=w; w=t; } main() { int x=1,y=3,z=2; if(x>y) f(x,y); else if(y>z) f(y,z); else f(x,z); printf("%d,%d,%d\n",x,y,z); } 执行后的输出结果( )。A.1,2,3B.3,1,2C.1,3,2D.2,3,1

阅读程序段,当输入数据形式为25,13,10时,正确的输出结果为 ______。 int x, y, z; cin>>x>>y>>z;; cout<< "x+y+z=%d\n" <<x+y+z;A.x+y+z=48B.x+y+z=35C.x+z=35D.不确定值

请选出以下程序的输出结果()includesub(x,y,z)int x,y,*z;{ *2=y-x;}main(){ int a,b, 请选出以下程序的输出结果( ) #include<stdio.h> sub(x,y,z) int x,y,*z; { *2=y-x;} main() { int a,b,c; sub(10,5,A) ;sub(7,a,B) ;sub(a,b,C) ; printf("%d,%d,%d\n",a,b,C) ; }A.5,2,3B.-5,-12,-7C.-5,-12,-17D.5,-2,-7

以下程序的输出结果是includevoid prt(int *x,int*y,int*z){ printf("%d,%d,%d\n",++* 以下程序的输出结果是 #include<stdio.h> void prt(int *x,int*y,int*z) { printf("%d,%d,%d\n",++*x,++*y,*(z++));} main() { int a=10,b=40,c=20; prt(a,b,c); prt(a,b,c);}A.11,42,31 12,22,41B.11,41,20 12,42,20C.11,21,40 11,21,21D.11,41,21. 12,42,22

请选出以下程序的输出结果_______。includesub(x,y,z)int x,y,*z;{*z=y-x;}main(){int 请选出以下程序的输出结果_______。 #include<stdio.h> sub(x,y,z) int x,y,*z; {*z=y-x;} main(){ int a,b,c; sub(10,5,A) ;sub(7,a,B) ;sub(a,b,C) ; printf("%d,%d,%d\n",a,b,C) ; }A.5,2,3B.-5,-12,-7C.-5,-12,-17D.5,-2,-7

有以下程序 include mare() { int x=1,y=2,z=3; if(x>y) if 有以下程序 #include <stdio.h> mare() { int x=1,y=2,z=3; if(x>y) if(y<z) printf("%d",++z); else printf("%d",++y); printf("%d\n",x++); } 程序的运行结果是______。A.331B.41C.2D.1

关于下面的程序 include main() { int x=3,y=0,z=0; if(x=y+z)printf("****"); else p 关于下面的程序 #include<stdio.h> main() { int x=3,y=0,z=0; if(x=y+z)printf("****"); else printf("$$$$"); }说法正确的是______。A.有语法错误不能通过编译B.输出****C.输出$$$$D.可以通过编译,但不能通过连接,无法运行

若执行下述程序时,从键盘输入的数据是3和6,则程序的输出结果是()。includevoid main(){ 若执行下述程序时,从键盘输入的数据是3和6,则程序的输出结果是( )。 #include <stdio.h> void main() {int x,y,z; scanf("%d%d",X,y); z = y + x; if (x<y) z = y + x; printf("%d",z); }A.9B.3C.0D.有语法错误

以下C程序段的输出结果是(30)。 include void prt(int*x,Int*y,int*z){ printf( 以下C程序段的输出结果是(30)。 #include<stdio.h> void prt(int*x,Int*y,int*z){ printf("%d,%d,%d\n",++*x,++*y,*(z++)); } void main(){ int a=10,b=40,c=20; Prt(a,b,c); Prt(a,b,c); }A.11,42,31 12,22,41B.11,41,20 12,42,20C.11,21,40 11,21,41D.11,41,20 12,42,22

以下程序输出结果是 ______。includevoid fun(int x,int y,int z){z=x+y;}void main 以下程序输出结果是 ______。 #include<iostream.h> void fun(int x,int y,int z){z=x+y;} void main() { int a=10; fun (2,2,a); cout<<a; }A.0B.4C.10D.无定值

有以下程序:includemain(){int x=3,y=2,z=1; printf("%d\n",x/y~z);程序运行后的 有以下程序: #include <stdio.h> main() { int x=3,y=2,z=1; printf("%d\n",x/y~z); 程序运行后的输出结果是( )。A.3B.2C.1D.0

以下程序的输出结果是()。includevoid prt(int *x,int *y,int *z){printf("%d,%d,%d\n" 以下程序的输出结果是( )。 #include<stdio.h> void prt(int *x,int *y,int *z) {printf("%d,%d,%d\n",++*x,++*y,*(z++));} main() {inta=10,b=40,c=20; prt(a,b,C); prt(a,b,C);}A.11,42,31 12,22,41B.11,41,20 1,42,20C.11,21,40 11,21,21D.11,41,21 12,42,22

以下程序的输出结果是______。includevoid prt(int *x,int *y,int *z){printf("%d,%d,% 以下程序的输出结果是______。 #include<stdio.h> void prt(int *x,int *y,int *z) { printf("%d,%d,%d\n",++*x,++y,*(z++));} int a=10,b=40,c=20; main() { prt(a,bc); prt(a,b,c); }A.11,42,31 12,22,41B.11,41,20 12,42,20C.11,21,40 11,21,41D.11,41,21 12,42,22

以下程序执行后的输出结果是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<<endl; 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.不确定

以下程序执行后的输出结果是includeusing namcspace std;void try(int,int,int,int); 以下程序执行后的输出结果是 #include<iostream> using namcspace 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.不确定

请选出以下程序的输出结果 ______。include sub(x, y, z)int x, y,*z;{*z=y-x:}main() 请选出以下程序的输出结果 ______。#include <stdio. h>sub(x, y, z)int x, y,*z;{*z=y-x:}main(){ int a, b, c; sub 10,5,a);sub(7,a,b);sub(a, b, c); printf("%d,% d,/%d\n", a, b, c);}A.5,2,3B.-5,-12,-7C.-5,-12,-17D.5,-2,-7

有以下程序:includefun(int x,int y,int z){z=x*y;}main(){int a=4,b=2,c=6; fun(a,b, 有以下程序: #include <stdio.h> fun(int x,int y,int z) { z=x*y;} main() { int a=4,b=2,c=6; fun(a,b,c); printf("%d",c); } 程序运行后的输出结果是( )。A.16B.6C.8D.12

如下程序的运行结果是______。 include main() { int x=y=3,z=1; printf ("%d%d\n",(++ 如下程序的运行结果是______。 #include<stdio.h> main() { int x=y=3,z=1; printf ("%d%d\n",(++x,y++),z+2); }A.3 4B.4 2C.4 3D.3 3

以下程序执行后的输出结果是()。includeusing namespace std;void try(int,int,int,in 以下程序执行后的输出结果是( )。 #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<<endl; 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.不确定

有以下程序:includevoid fun(int a,int b,int c){ a=456,b=567,c=678;}main(){ int x= 有以下程序: #include <stdio.h> void fun(int a,int b,int c) { a=456,b=567,c=678;} main() { int x=10,y=20,z=30; fun(x,y,z); printf("%d,%d,%d\n",x,y,z); } 此程序的输出结果是( )。A.30,20,10B.10,20,30C.456,567,678D.678,567,456

以下程序执行后的输出结果是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.不确定