-
有以下程序,其中 k 的初值为八进制数 #include main() {int k=011; printf(\%d\\n\,k++);} 程序运行后输出结果为( )。
-
有下列程序,程序运行后的输出结果是0( )。#include int main( ){int a[5]={1,2,3};printf(\%d \,a[3]);return 0;}
-
下列程序的输出结果是()。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> define PT 5.5 define S(x)PT*x*x
以下程序的输出结果为()。 include<stdio.h> define PT 5.5 define S(x)PT*x*x void main() { int a=1,b=2; printf("%5.1f\n",S(a+b)); )
A.12.0
B.9.5
C.12.5
D.33.5
-
下列程序段的输出结果为()。 include<stdio.h> main() { static char a[]="language"; char*p; p=a; for(p=a;p<a+8;p+=2) putchar(*p); }
A.language
B.lnug
C.有语法错误
D.lang
-
下列程序的输出结果是______。 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<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<iostream.h> void main { char*a[]={”hell0”,”the”,”
下列程序的输出结果为()。 include<iostream.h> void main { char*a[]={”hell0”,”the”,”world”}; char** pa = a: pa++; cout<<*pa<<endl: }
A.hello
B.the
C.world
D.hellotheworld
-
下列程序的输出结果是______。 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>main(){int a=4,b=3,c=1,d;d=a&&b&&am
下列程序的输出结果为()。 include<iostream.h> main() { int a=4,b=3,c=1,d; d=a&&b&&b>c-!0; cout<<d; }
A.0
B.3
C.1
D.4
-
下列程序的输出结果是()。 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<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
-
现有如下程序段,则程序段的输出结果为【16】。 include’stdio.h’ intfun()}
-
输入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 int main(); return 0; }
-
已知在ASCⅡ代码中,字母A的序号为65,以下程序输出的结果是______。include<stdio.h>main(); }
-
下列程序输出的结果是()。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