• 2022-05-26 问题

    There are ( ) basic paths for the following program.int FUN(int count, int flag){ int temp=0; while(count>0){ if(0==flag){ temp=count+100; } else{ if(1==flag) temp=temp+10; else temp=temp+20; } count--; } return temp;} A: 2 B: 3 C: 4 D: 4

    There are ( ) basic paths for the following program.int FUN(int count, int flag){ int temp=0; while(count>0){ if(0==flag){ temp=count+100; } else{ if(1==flag) temp=temp+10; else temp=temp+20; } count--; } return temp;} A: 2 B: 3 C: 4 D: 4

  • 2021-04-14 问题

    输入5个字符串,将其中最小的打印出来 #include “stdio.h” #include “string.h” main() { char str[10],temp[10]; int i; (1) ; for(i=0;i<4;i++) { gets(str); if(strcmp(temp,str)>0) (2) ; } printf(“ The first string is:%s ”,temp); }

    输入5个字符串,将其中最小的打印出来 #include “stdio.h” #include “string.h” main() { char str[10],temp[10]; int i; (1) ; for(i=0;i<4;i++) { gets(str); if(strcmp(temp,str)>0) (2) ; } printf(“ The first string is:%s ”,temp); }

  • 2021-04-14 问题

    请阅读以下程序代码,输出结果正确的是()。 <?php $a=1; $temp=0; while($a<=10){ if($a==8) break; $temp+=$a; $a++; } echo $temp; ?>

    请阅读以下程序代码,输出结果正确的是()。 <?php $a=1; $temp=0; while($a<=10){ if($a==8) break; $temp+=$a; $a++; } echo $temp; ?>

  • 2021-04-14 问题

    temp = val * 4.8878 / 10语句表示LM35传感器计算电压值()。

    temp = val * 4.8878 / 10语句表示LM35传感器计算电压值()。

  • 2022-05-26 问题

    若定义某字节变量temp=0x01;下列可以实现temp右移三位的语句是? A: temp=temp&gt;&gt;3; B: temp=temp&lt;&lt;3; C: temp=_crol_(temp,3); D: temp=_cror_(temp,3);

    若定义某字节变量temp=0x01;下列可以实现temp右移三位的语句是? A: temp=temp&gt;&gt;3; B: temp=temp&lt;&lt;3; C: temp=_crol_(temp,3); D: temp=_cror_(temp,3);

  • 2022-06-03 问题

    在C51中有个无符号型字符变量temp 和一个位变量flag,要对它们取反,相应的C51语句为( )。 A: temp=~temp ; flag=!flag B: temp=!temp ; flag=~flag C: temp=!temp ; flag=!flag D: temp=~temp ; flag=~flag

    在C51中有个无符号型字符变量temp 和一个位变量flag,要对它们取反,相应的C51语句为( )。 A: temp=~temp ; flag=!flag B: temp=!temp ; flag=~flag C: temp=!temp ; flag=!flag D: temp=~temp ; flag=~flag

  • 2021-04-14 问题

    阅读下面的程序: main() { int swap(); int a,b; a=3;b=10; swap(a,b); printf("a=%d,b=%d ",a,b); } swap(int a,int b) { int temp; temp=a; a=b; b=temp; } 下面的说法中,正确的是________

    阅读下面的程序: main() { int swap(); int a,b; a=3;b=10; swap(a,b); printf("a=%d,b=%d ",a,b); } swap(int a,int b) { int temp; temp=a; a=b; b=temp; } 下面的说法中,正确的是________

  • 2022-06-07 问题

    下面哪个选项可以交换指针p和q所指的int型变量的值? A: temp = *p; *p = *q; *q = temp; B: temp = p; p = q; q = temp; C: temp = p; *p = *q; q = temp; D: temp = &p; *p = *q; q = *temp;

    下面哪个选项可以交换指针p和q所指的int型变量的值? A: temp = *p; *p = *q; *q = temp; B: temp = p; p = q; q = temp; C: temp = p; *p = *q; q = temp; D: temp = &p; *p = *q; q = *temp;

  • 2021-04-14 问题

    输入10个整数,用选择法排序后按从小到大的次序输出。 #define N 10 main( ) { int i,j,min,temp,a[N]; for(i=0;ia[j]) ; temp=a[i]; a[i]=a[min]; a[min]=temp; } for (i=0;i &a[i]  i

    输入10个整数,用选择法排序后按从小到大的次序输出。 #define N 10 main( ) { int i,j,min,temp,a[N]; for(i=0;ia[j]) ; temp=a[i]; a[i]=a[min]; a[min]=temp; } for (i=0;i &a[i]  i

  • 2021-04-14 问题

    智慧职教: 根据温度判断舒适度,温度大于等于30度炎热,在20~30之间稍热,在10~20度之间舒适,10度以下寒冷。程序空白处应填写______.  #include void main( ){doubletemp;     scanf("%lf",&temp);if (temp>=30)         printf("炎热 ");     else if ()printf("稍热 ");     elseif(temp>=10)printf("舒适 ");elseprintf("寒冷 ")}

    智慧职教: 根据温度判断舒适度,温度大于等于30度炎热,在20~30之间稍热,在10~20度之间舒适,10度以下寒冷。程序空白处应填写______.  #include void main( ){doubletemp;     scanf("%lf",&temp);if (temp>=30)         printf("炎热 ");     else if ()printf("稍热 ");     elseif(temp>=10)printf("舒适 ");elseprintf("寒冷 ")}

  • 1 2 3 4 5 6 7 8 9 10