皮皮学,免费搜题
登录
搜题
【简答题】
程序分析题 阅读程序,写出运行结果 (1)下列程序的运行结果是 1 井include void main( ) { char a[ ]={ 'a','b','c','d','e','f','g','h','\n'}; int x,y; x= sizeof(a) ; y= strlen(a); printf("%d,%d",x,y); (2)下列程序的运行结果是___2 井include < stdio.h> void fun(int b[3]) { int j; for(j=0;j<3;j++) { b[j]=j; } } void main( ) int a[3]={1.2,3},K; fun(a); for(k=0;k<3;k++) { printf(" %d" ,a[k]); } void } (3)下列程序的运行结果是__3 # include< stdio.h> int fun(int a,int b) { return(a+ b); } void main( ) { int x=2,y=3,z=4,r; r= fun(fun(x,y),z); printf("%d" ,r); } (4)下列程序的运行结果是__4 # include void main( ) { char a[ ]="abcdef",b[ ]= "acdeea'; char *pl,*p2; int i; pl=a; p2=b; for(i=0;i<6;i++) { if(*(p1+i)! = * (p2 +i)) printf("%c",* (p1 +i)); } } (5)下列程序的运行结果是5 # include < stdio.h> void inv(int * p,int n) { int *i, *j,m=(n-1)/2,t; j=p+n-l; for(i=p;i
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【简答题】保险合同的当事人包括被保险人和受益人。
【简答题】人身保险合同的当事人包括( )。 A投保人 B保险人 C被保险人 D受益人
【单选题】How men first learned to invent words is unknown in other words, the origin of language is a mystery. All we really know is that men, unlike animals, somehow invented certain sounds to ex press though...
A.
a legend handed down from the past
B.
a matter that is hidden or secret
C.
a question difficult to answer
D.
a problem not yet solved
【单选题】How men first learned to invent words is unknown in other words, the origin of language is a mystery. All we really know is that men, unlike animals, somehow invented certain sounds to express thought...
A.
is reflected in. sounds and letters
B.
is handed down from generation to generation
C.
dates back to the prehistoric period
D.
is a problem not yet solved
【判断题】商业健康保险合同的当事人包括保险人、被保险人和投保人。
A.
正确
B.
错误
【单选题】在选用增量编码器的机床上优先采用的回参考点方式是( )
A.
减速开关回参考点
B.
无减速开关回参考点
C.
机械碰撞式回参考点
D.
绝对零点回参考点
【判断题】基本预备费是以建筑安装工程费与工程建设其他费之和为计算基数乘以基本预备费率。( )
A.
正确
B.
错误
【多选题】数学中一个群的运算满足哪些条件( )
A.
封闭性
B.
满足结合律
C.
有单位元
D.
满足交换律
【单选题】How men first learned to invent words is unknown in other words, the origin of language is a mystery. All we really know is that men, unlike animals, invented certain sounds to express thoughts and fe...
A.
treasure handed down from the past
B.
a matter that is hidden or secret
C.
a problem not yet solved
D.
a question difficult to answer
【单选题】How men first learnt to invent words is unknown; in other words, the origin of language is a mystery. All we really know is that—men, unlike animals, somehow invented certain sounds to express thought...
A.
Because they wanted to agree on certain signs
B.
As they needed to write them down
C.
Since they wanted to communicate with each other
D.
Now that they could combine them
相关题目: