Physics is the present day equivalent of () used to be called natural philosophy, from () most of present day science arose.
A.which, what
B.that, which
C.what, which
D.what, that
A.which, what
B.that, which
C.what, which
D.what, that
第1题
有以下程序 yoidfun2(chara,charb) {printf(%c%c,a,b);) chara=A,b=B; yoidfunl() {a=C;b=D;) main() {funl(); printf(%c%ca,b); fun2(E,F); } 程序的运行结果是
A.ABEF
B.CDEF
C.abcD
D.CDAB3.8变量的作用域和生存期
第2题
如下程序的输出结果是______。
include<iostream>
using namespace std;
int funl(int x){return++x;}
int fun2(int&x){return++x;}
int main(){
int x:1,y=2;
Y=funl(fun2(x));
cout<<x<<','<<y;
return 0;
}
第3题
下列程序的输出结果是()。
#included<iostream>
usingnamespacestd;
intmain()
{
chara[]="Hell0,Test";
char*p=a;
while(*p)
{
if(*p>='a'&&*p<='z')
cout<<char(*p+'A'-'a');
elsecout<<*P;
p++;
}
return0;
}
A.hello,test
B.Hello,Test
C.HELLO,TEST
D.hELLO,tEST
第4题
下列程序的输出结果是()。 #include<iostream> using namespace std; int main() 于 chara[]=”Hello,Test”; Char*p=a; while(*p) { if(*p)=’a’&&*p(=’z’) cout<<char(*p+’A’-’a’); else cout<<*p; p++; } return 0; }
A.hello,test
B.Hello,Test
C.HELLO,TEST
D.hELLO,tEST
第5题
有以下程序 yoidfunl(char*p) {char*q; q*p; while(*q!=0) {(*q)++;q++;} } main() {chara[]={“Program”),*p; p=&a[3];funl(p);printf(“%s\n”,a); } 程序执行后的输出结果是
A.Prphsbn
B.Prohsbn
C.Progsbn
D.Program
第6题
以下程序的输出结果是____
# include
main()
{ char a[]={‘\1’,’\2’,’\3’,’\4’,’\0’};
printf(“%d %d\n”,sizeof(a),srelen(a));
}
第7题
A.xyabcAB
B.abcABz
C.ABabcz
D.abcdABCD
第8题
下面程序的输出结果是()。 include<stdio.h> main() {static chara[]="zhao",b[]="juan"; char*ptr1=a,*ptr2=b; int k; for(k=0;k<4;k++) if(*(ptr1+k)==*(ptr2+k)) printf("%c",*(ptr1+k));}
第9题
有以下程序
include<stdio.h>
typedef struct
{int num;double s;}REC;
void funl(REC x){x.nllm=23;x.s=88.5;}
main()
{REC a={16,90.0);
funl(A);
prinff(“%d\n”,a.num);
}
程序运行后的输出结果是【 】。
第10题
B.Hello,Test
C.HELLO,TEST
D.hELLO,tEST
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!