-
有下列程序,程序运行后的输出结果是0( )。#include int main( ){int a[5]={1,2,3};printf(\%d \,a[3]);return 0;}
-
下列程序的输出结果是()。 include<stdio.h> main() { int a=4; print f("%d\n", (a+=a-=a*a)); }
A.-8
B.14
C.0
D.-24
-
下列程序的输出结果是()。include<stdio.h>int b=2:int func(int*a){ b+=*a;return b;}ma
下列程序的输出结果是()。
include<stdio.h>
int b=2:
int func(int*a)
{ b+=*a;return b;}
main
{ int a=1,t=2;
t+=func(&a):
printf("%d\n",t);
}
A.4
B.5
C.6
D.8
-
下列程序的输出结果是()。include<stdio.h>include<string.h>main(){ char a[]="\n123\\"; printf("%d,%d\n",strlen(A) ,sizeof(A) );}
A.5,6
B.5,5
C.6,6
D.6,5
-
下列程序的输出结果是()。 include<stdio.h> main { int a=3,b=2,c=1; if(a<b) if(b&l
下列程序的输出结果是()。 include<stdio.h> main { int a=3,b=2,c=1; if(a<b) if(b<0)c=0; else c++: printf("%d\n",c); }
A.2
B.0
C.1
D.不确定的值
-
下列程序的输出结果是______。include <stdio.h>main(){ int i=1,j=3; printf("%d,",i++); {int
下列程序的输出结果是______。include <stdio.h>main (){ int i=1,j=3; printf("%d,",i++); { int i=0; i+=j*2; printf("%d,%d,",i,j); } printf("%d,%d\n",i,j);}
A.1,6,3,1,3
B.1,6,3,2,3
C.1,6,3,6,3
D.1,7,3,2,3
-
下列程序的输出结果是inClUde<iostream.h>iht b=2;int funC (int*a) { b+=*a;return(b);}void m
下列程序的输出结果是 inClUde<iostream.h> iht b=2; int funC (int*a) { b+=*a;return(b);} void main() { inta=2,res=2; res+=func(&a); cout<<res;}
A.4
B.6
C.8
D.10
-
下列程序的输出结果是______。 include<stdio.h> main() { int a=2,b=-1,C=2;
下列程序的输出结果是______。 include<stdio.h> main() { int a=2,b=-1,C=2; if(a<B) if(b<O)c=0; else c++; printf("%d\n",C) ; }
-
要求下面的程序运行后,显示如下结果: 2 10 4 6 1 5 2 3 2 4 7 8 5 1 3 2 下列程序执行后的输出结果是________。 include void main(); }
A.2,0
B.1,4
C.2,1
D.0,3
-
有下列程序 include<stdio.h>main()); } 程序执行时若输入: welcome you to beijing<回车>,则输出结果是
A.w,you,jing,o
B.welcome,you,jing,to
C.w,you,eeijing,u
D.w,xelcome,eeijing,u
-
下列程序的输出结果是()。 include<stdio.h> include<string.h> main() { char a[]="\n123\\"; printf("%d,%d\n",strlen(a),sizeof(a)); }
A.5,6
B.5,5
C.6,6
D.6,5
-
下列程序的输出结果是()。include<iostream.h>int rain(iltl a,int B.{if(a<B.return a;el
下列程序的输出结果是()。
include<iostream.h>
int rain(iltl a,int B.
{
if(a<B.return a;
else retum b;
retum 0;
}
void main
{
eout<<min(1,min(2,3))<<endl;
}
A.0
B.1
C.2
D.3
-
下列程序的输出结果是()。 include<stdio.h> main() { int i,S=0; for(i=1;i<10;i++)
下列程序的输出结果是()。 include<stdio.h> main() { int i,S=0; for(i=1;i<10;i++) if(!(i%2)&&!(i%3))s+=i; printf("%d\n",s); }
A.4
B.39
C.45
D.6
-
下列程序的输出结果是()。 include<stdio.h> main { int i; for(i=1;i<=10,i++) { if(
下列程序的输出结果是()。 include<stdio.h> main { int i; for(i=1;i<=10,i++) { if((i*i>=20)&&(i*i<=100)) break; } printf("%d\n",i*i; }
A.49
B.36
C.25
D.64
-
下列程序的输出结果是______。 include<stdio.h> main(); }
-
以下程序的输出结果是 。 include <iostream> include <iomanip> using namespace
以下程序的输出结果是 。 include <iostream> include <iomanip> using namespace std; void main() { int i; for (i=1;i>=0;) cout< <i--;>
-
下列程序的输出结果是()。include<stdio.h>main(){ int a=4;printf("%d\n",(a+=a-=a*A) );}
A.-8
B.14
C.0
D.-24
-
下列程序的输出结果是()。include< iostream.h> void main(){double d=3.2;intx,y:x=1.2;y=(x+3.
下列程序的输出结果是()。 include< iostream.h> void main() {double d=3.2; intx, y: x=1.2; y=(x+3.8)/5.0 cout<<y*d <<endl;}
A.3
B.3.2
C.0
D.3.07
-
下列程序输出的结果是()。 include<stdi0.h> funl(chara,charb){charC;c=a;a=b;b=C;) f
下列程序输出的结果是()。 include<stdi0.h> funl(chara,charb){charC;c=a;a=b;b=C;) fun2(char*a,charb){charC;c=*a;*a=b;b=c;) fun3(char*a,char*b){charC;C=*a;*a=*b;*b=C;) voidmain() { chara,b; a=A;b=B;fun1(a,b);putchar(a);putchar(b); a=A;b=B;fun2(&a,b);putchar(a);putchar(b); a=A;b=B;fun3(&a,&b);putchar(a);putchar(b); putchar(\n); }
A.BABBAB
B.ABBBBA
C.ABBABA
D.ABABBA
-
下列程序的输出结果是()。 include<stdio.h> int fun(int a) { int b=0; static int c=4:
下列程序的输出结果是()。 include<stdio.h> int fun(int a) { int b=0; static int c=4: a=c++:b++; return(a): main { int a=2,i,c; for(i=0:i<2;i++) c=f(a+1): printf("%d\n",c); }
A.4
B.7
C.6
D.5
-
下列程序的输出结果是()。 include<stdio.h> int b=2: int func(int*a) { b+=*a;return b
下列程序的输出结果是()。 include<stdio.h> int b=2: int func(int*a) { b+=*a;return b;} main { int a=1,t=2; t+=func(&a): printf("%d\n",t); }
A.4
B.5
C.6
D.8
-
有以下程序 include<stdio.h>include<string.h>void fun(); } 程序运行后的输出结果是
A.012345
B.876543210
C.876543
D.012345678
-
下列程序的输出结果为()。include<iostream.h) int ...
下列程序的输出结果为()。
include<iostream.h) int fune(int n)
{
if(n<1)return l;
else return n+time(n一1); return 0;
}
void main {
cout<<func(5)<<endl;
}
A.0
B.10
C.15
D.16
-
输入c2470f ? <回车> 后,下列程序的输出结果是________。 include "stdio.h" int main()
输入c2470f ? <回车> 后,下列程序的输出结果是________。 include "stdio.h" int main() { char ch; long number=0; while((ch=getchar())<’0’||ch>’6’) ; while(ch!=’?’&&ch>=’0’&&ch<=’6’) { number="number*7+ch﹣’0’;" printf("%ld",number); ch="getchar();" } return 0;>
-
下列程序输出的结果是()。include void f(int * x ){ *x = 10 ;
下列程序输出的结果是()。include void f(int * x ){ *x = 10 ; }void main(){ int a,*p=&a; f(p); printf("%d",++(*p));}提示:指针x指与指针p指向同一个变量,10赋给指针x所指的地址上的内容,++(*p)是指指针p所指地址上内容++。
A 输出的值是随机值
B 因输出语句错误而不能执行者
C 输出值为10
D 输出值为11