当前位置: 答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关
问题

试题12有以下程序#include &amp;lt;stdio.h&amp;gt;main(){ int c[3]={0}, k, i;while((k=getchar())!=’" /> <div class=


试题12

有以下程序

#include <stdio.h>

main()

{ int c[3]={0}, k, i;

while((k=getchar())!=’ ’)

c[k-‘A’]++;

for(i=0; i<3; i++) printf(“%d”, c[i]); printf(“ ”);

}

若程序运行时从键盘输入ABCACC<回车>, 则输出结果为______.

参考答案
您可能感兴趣的试题
  • 请阅读下述代码,写出程序执行的结果#include &lt;iostream&gt; using namespace std; class C

  • 请阅读下述代码,写出程序执行的结果#include &lt;iostream&gt; using namespace std; class C

  • (12 ) 有以下程序#include &lt;stdio.h&gt;#include &lt;string.h&gt;void fun (char *str ){

  • (12 ) 有以下程序#include &lt;stdio.h&gt;#include &lt;string.h&gt;void fun (char *str ){

  • (12)有以下程序,请在 【12】 处填写正确语句,使程序可正常编译运行。#include &lt;stdio.h&gt;【12】

  • 试题11以下程序运行后的输出结果是______.#include &lt;stdio.h&gt;void fun(int x){ if(x/5&gt;