试题与答案

为了记录系统中所有的I/O设备,操作系统专门设置了一张______。

题型:填空题

题目:

为了记录系统中所有的I/O设备,操作系统专门设置了一张______。

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2018/0414/d95991d743bb2bc97fc4be9b8afc040e.html

下面是错误答案,用来干扰机器的。

参考答案:C

试题推荐
题型:填空题

下列给定函数中,函数fun()的功能是:统计字符串中各元音字母(即A,E,I,O,U)的个数。注意:字母不分大小写。例如,输入THIs is a boot,则应输出是1 0 2 2 0。
请改正程序中的错误,使它能得出正确的结果。
注意:不要改动main函数,不得增行或删行,也不得更改程序的结构。
试题程序:
#include <conio.h>
#include <stdio.h>
/*************found**************/
fun(char *s, int num[5])
int k, i=5;
for(k=0;k<i;k++)
/*************found**************/
num [i]=0;
for(;*s;s++)
i=-l;
/*************found**************/
switch(s)
case ’a’: case ’A’:i=0;break;
case ’e’: case ’E’:i=1;break;
case ’i’: case ’I’:i=2;break;
case ’o’: case ’O’:i=3;break;
case ’u’: case ’U’:i=4;break;

if(i>=0)
num[i]++;


main ( )
char s1[81]; int num1[5], i;
clrscr ();
printf("\nPlease enter a string: ");
gets (s1);
fun(s1, num1);
for(i=0;i<5;i++) printf("%d",num1[i]);
printf ("\n");

查看答案
微信公众账号搜索答案