题目内容

下程序的输出结果是 【20】 。 # include<stdio.h> # define MAX_COUNT4 void fun( ) main( ) { int count; for(count=1;count<=MAX_COUNT;coun+ +)fun( ); } void fun( ) { staic int i; i + =2; printf(”%d,i); }

查看答案
更多问题

设栈S和队列Q的初始状态为空,元素按照a、b、c、d、e的次序进入栈S,当一个元素从栈中出来后立即进入队列Q。若队列的输出元素序列是c、d、b、a、e,则元素的出栈顺序是 (57) ,栈S的容量至少为 (58) 。

A. 2
B. 3
C. 4
D. 5

无效劳动合同指当事人违反法律、行政法规的规定订立的不具有法律效力的劳动合同。它虽是当事人双方协商订立的,但经国家规定的专门机构认为无效后,国家则不予确认,法律不予保护。 根据以上定义,下列属于无效劳动合同的行为是( )

A. 李炳林被某印刷厂雇佣,书面合同规定管吃管住,月薪800元,无节假日
B. 李龙基在公开劳动市场被某饭馆雇佣,签订劳动合同并当场作了合同公证
C. 李之龙在劳动行政部门的鉴证下与某水泥厂签订了劳动合同
D. 李元吴被某印刷厂雇佣,书面合同规定月薪800元并口头约定遵循国家相关政策和法律

The Rational Unified Process (RUP) is a software engineering process. which captures many of best practices in modem software development. The notions of (71) and scenarios have been proven to be an excellent way to capture function requirements. RUP can be described in two dimensions-time and content. In the time dimension, the software lifecycle is broken into cycles. Each cycle is divided into four consecutive (72) which is concluded with a well-defined (73) and can be further broken down into (74) -a complete development loop resulting in a release of an executable product, a subset of the final product under development,which grows incrementally to become the final system. The content structure refers to the disciplines, which group (75) logically by nature.

A. milestone
B. end-mark
C. measure
D. criteria

下列程序的功能是:选出100~1000间的所有个位数字与十位数字之和被10除所得余数恰是百位数字的素数(如293)。计算并输出上述这些素数的个数cnt,以及这些素数值的和sum。请编写函数countValue()实现程序要求,最后调用函数writeDAT()把结果cnt和sum输出到文件OUT17.DAT中。 注意:部分源程序已给出。 请勿改动主函数main()和写函数writeDAT()的内容。 试题程序: #include 〈stdio.h> int cnt, sum; void countValue() main ( ) cnt=sum=0; countValue (); printf("素数的个数=%d\n", cnt); printf ("满足条件素数值的和=%d", sum); writeDAT (); writeDAT () FILE *fp; fp=fopen("OUT17.DAT", "w"); fprintf(fp, "%d\n%d\n", cnt, sum); fclose (fp);

答案查题题库